26 lines
843 B
Plaintext
26 lines
843 B
Plaintext
# Van Emous CRM achter nginx (server/setup.sh vult __DOMAIN__ in; certbot voegt HTTPS en de doorverwijzing toe).
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name __DOMAIN__;
|
|
|
|
# uploads tot 25 MB (MAX_CONTENT_LENGTH in app.py)
|
|
client_max_body_size 25m;
|
|
|
|
# css, js en de 3D-engine direct door nginx; steeds even navragen zodat een nieuwe release meteen zichtbaar is
|
|
location /static/ {
|
|
alias /srv/vanemous-crm/current/static/;
|
|
add_header Cache-Control "no-cache";
|
|
access_log off;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:5050;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
}
|