From 7aab108b6b866015683aac2815ae7192d391f444 Mon Sep 17 00:00:00 2001 From: Linden Crandall Date: Fri, 7 Feb 2025 09:11:53 +0900 Subject: [PATCH] local https prod simulation nginx config --- .../nginx/automatisch_self_signed_nginx.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 https/nginx/automatisch_self_signed_nginx.conf diff --git a/https/nginx/automatisch_self_signed_nginx.conf b/https/nginx/automatisch_self_signed_nginx.conf new file mode 100644 index 0000000..4b833fe --- /dev/null +++ b/https/nginx/automatisch_self_signed_nginx.conf @@ -0,0 +1,19 @@ +events {} + +http { + server { + listen 443 ssl; + server_name shiloh_automatisch.local; + + ssl_certificate /etc/nginx/certs/shiloh_automatisch.local.crt; + ssl_certificate_key /etc/nginx/certs/shiloh_automatisch.local.key; + + location / { + proxy_pass http://main:7757; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + } + } +}