Skip to content

Commit

Permalink
changed nginx project.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Oct 29, 2024
1 parent 47d01d7 commit 7d1f312
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions nginx/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,22 @@ 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;
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 $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;
# }


}

0 comments on commit 7d1f312

Please sign in to comment.