Files
opencare/deploy/nginx.conf
laurentbarontini efd775706b Initial production-ready release of OpenCare v1
- Flask/SQLAlchemy app with profile, dashboard, recommendations
- AI crawl pipeline (GPT-4o) with admin review workflow
- 14 curated health sources (RSS + index crawling)
- Production config: env vars, Gunicorn, systemd, nginx
- deploy/ scripts for VPS setup and updates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 21:38:03 +02:00

48 lines
1.7 KiB
Nginx Configuration File

server {
listen 80;
server_name opencare.open-squared.tech; # adapter selon votre domaine
# Redirection HTTPS (décommenter après avoir configuré le certificat)
# return 301 https://$host$request_uri;
location / {
proxy_pass http://127.0.0.1:5000;
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;
proxy_read_timeout 120s;
}
# Fichiers statiques servis directement par nginx
location /static/ {
alias /opt/opencare/static/;
expires 7d;
add_header Cache-Control "public, immutable";
}
}
# Bloc HTTPS (générer le certificat avec : certbot --nginx -d opencare.open-squared.tech)
# server {
# listen 443 ssl;
# server_name opencare.open-squared.tech;
# ssl_certificate /etc/letsencrypt/live/opencare.open-squared.tech/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/opencare.open-squared.tech/privkey.pem;
# include /etc/letsencrypt/options-ssl-nginx.conf;
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
#
# location / {
# proxy_pass http://127.0.0.1:5000;
# 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;
# proxy_read_timeout 120s;
# }
#
# location /static/ {
# alias /opt/opencare/static/;
# expires 7d;
# }
# }