Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add route for let's encrypt challenge #3796

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions config/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ http {
proxy_set_header Host $host;
proxy_pass http://portainer:9000/;
}

# Let's Encrypt route
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}

# Requests to the oauth2-proxy which redirect to supabase studio app once authenticated
Expand All @@ -184,6 +189,11 @@ http {
proxy_set_header X-Scheme $scheme;
proxy_pass http://oauth2-proxy:8080/;
}

# Let's Encrypt route
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}

# Requests to the api.* domain should be proxied to Traefik
Expand All @@ -198,6 +208,11 @@ http {
# We run Traefik via Docker on port 8888
proxy_pass http://traefik:8888;
}

# Let's Encrypt route
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}

# Default server redirects traffic on 80 to 443, prefer secure connection
Expand Down