summaryrefslogtreecommitdiff
path: root/reverse-proxy/conf.d/nginx.conf
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-06-19 00:14:49 +0200
committerOrangerot <purple@orangerot.dev>2024-06-27 12:11:14 +0200
commit5b8851b6c268d0e93c158908fbfae9f8473db5ff (patch)
tree7010eb85d86fa2da06ea4ffbcdb01a685d502ae8 /reverse-proxy/conf.d/nginx.conf
Initial commitHEADmain
Diffstat (limited to 'reverse-proxy/conf.d/nginx.conf')
-rw-r--r--reverse-proxy/conf.d/nginx.conf77
1 files changed, 77 insertions, 0 deletions
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