Spaces:
Sleeping
Sleeping
File size: 1,825 Bytes
b7e98d4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | server {
listen 80;
server_name pna.nursingcitizendevelopment.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name pna.nursingcitizendevelopment.com;
ssl_certificate /etc/letsencrypt/live/pna.nursingcitizendevelopment.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pna.nursingcitizendevelopment.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
# ββ Stripe webhook endpoint ββββββββββββββββββββββββββββββββββββββββββββββ
location /webhook {
proxy_pass http://pna-webhook:8080/webhook;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 30s;
}
# ββ Streamlit WebSocket SSE stream βββββββββββββββββββββββββββββββββββββββ
location /_stcore/stream {
proxy_pass http://pna-assistant:8501/_stcore/stream;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400s;
}
# ββ Streamlit app (everything else) βββββββββββββββββββββββββββββββββββββ
location / {
proxy_pass http://pna-assistant:8501;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 300s;
}
}
|