Skip to content

Commit

Permalink
Merge pull request #861 from ita-social-projects/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
MementoMorj authored Sep 28, 2023
2 parents 12866ea + fc2cdd2 commit 8c57e2a
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 8c57e2a

Please sign in to comment.