From 5b8851b6c268d0e93c158908fbfae9f8473db5ff Mon Sep 17 00:00:00 2001 From: Orangerot Date: Wed, 19 Jun 2024 00:14:49 +0200 Subject: Initial commit --- reverse-proxy/conf.d/nginx.conf | 77 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 reverse-proxy/conf.d/nginx.conf (limited to 'reverse-proxy/conf.d') diff --git a/reverse-proxy/conf.d/nginx.conf b/reverse-proxy/conf.d/nginx.conf new file mode 100644 index 0000000..43152cb --- /dev/null +++ b/reverse-proxy/conf.d/nginx.conf @@ -0,0 +1,77 @@ +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; +# } +# } \ No newline at end of file -- cgit v1.2.3