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

Develop #861

Merged
merged 2 commits into from
Sep 28, 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
8 changes: 6 additions & 2 deletions templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ server {
listen 80;
listen [::]:80;

server_name $FRONTEND_SERVER_NAME;
server_name $BACKEND_SERVER_NAME;

location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

return 301 https://$FRONTEND_SERVER_NAME;
return 301 https://$BACKEND_SERVER_NAME;
}

server {
Expand All @@ -32,6 +32,8 @@ server {
ssl_certificate_key /etc/nginx/ssl/live/$FRONTEND_SERVER_NAME/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/live/$FRONTEND_SERVER_NAME/fullchain.pem;

client_max_body_size 50M;

location / {
proxy_pass http://frontend;
proxy_set_header Host $http_host;
Expand All @@ -50,6 +52,8 @@ server {
ssl_certificate_key /etc/nginx/ssl/live/$BACKEND_SERVER_NAME/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/live/$BACKEND_SERVER_NAME/fullchain.pem;

client_max_body_size 50M;

location / {
proxy_pass http://backend;
proxy_set_header Host $http_host;
Expand Down
Loading