server { listen 80; server_name ${FRONTEND_DOMAIN}; ########################## # Comment when using SSL # ########################## location / { proxy_pass http://pse-frontend:80; } ############################ # Uncomment when using SSL # ############################ # location /.well-known/acme-challenge/ { # root /letsencrypt/; # } # return 301 https://${FRONTEND_DOMAIN}$request_uri; } server { listen 80; server_name ${BACKEND_DOMAIN}; ########################## # Comment when using SSL # ########################## location / { proxy_pass http://pse-backend:8080; } ############################ # Uncomment when using SSL # ############################ # location /.well-known/acme-challenge/ { # root /letsencrypt/; # } # return 301 https://${BACKEND_DOMAIN}$request_uri; } ############################ # Uncomment when using SSL # ############################ # server { # listen 443 ssl http2; # listen [::]:443 ssl http2; # server_name ${FRONTEND_DOMAIN}; # # use the certificates # ssl_certificate /etc/letsencrypt/live/${FRONTEND_DOMAIN}/fullchain.pem; # ssl_certificate_key /etc/letsencrypt/live/${FRONTEND_DOMAIN}/privkey.pem; # location / { # proxy_pass http://pse-frontend:80; # } # } # server { # listen 443 ssl http2; # listen [::]:443 ssl http2; # server_name ${BACKEND_DOMAIN}; # # use the certificates # ssl_certificate /etc/letsencrypt/live/${FRONTEND_DOMAIN}/fullchain.pem; # ssl_certificate_key /etc/letsencrypt/live/${FRONTEND_DOMAIN}/privkey.pem; # location / { # proxy_pass http://pse-backend:8080; # } # }