33 lines
874 B
Plaintext
33 lines
874 B
Plaintext
# Config temporaire HTTP-only — utilisée uniquement lors du premier setup
|
|
# pour permettre à Certbot d'obtenir le certificat SSL.
|
|
# Remplacée automatiquement par setup-vps.sh après obtention du cert.
|
|
|
|
server {
|
|
listen 80;
|
|
server_name openfin.open-squared.tech;
|
|
|
|
# Challenge ACME pour Let's Encrypt
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://backend:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
location /oauth/ {
|
|
proxy_pass http://backend:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://frontend:80;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|