From 7d1f3122714a5fbd36fdb66e05db5e2a56f7f888 Mon Sep 17 00:00:00 2001 From: Lorena Hendrix Date: Tue, 29 Oct 2024 14:27:11 +0100 Subject: [PATCH] changed nginx project.conf --- nginx/project.conf | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/nginx/project.conf b/nginx/project.conf index 65b41a7..7b6bc95 100644 --- a/nginx/project.conf +++ b/nginx/project.conf @@ -60,13 +60,6 @@ server { listen 443 ssl; server_name app.batterymodel.com; - ssl_certificate /etc/letsencrypt/live/app.batterymodel.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/app.batterymodel.com/privkey.pem; - - location /.well-known/acme-challenge/ { - root /usr/share/nginx/html; - } - location / { proxy_pass http://gui:80; # Assuming Streamlit runs on port 80 inside the container proxy_set_header Host $host; @@ -74,4 +67,15 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + + ssl_certificate /etc/letsencrypt/live/app.batterymodel.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/app.batterymodel.com/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; + + # location /.well-known/acme-challenge/ { + # root /usr/share/nginx/html; + # } + + } \ No newline at end of file