34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name ~^portedoc ~^porte-doc ~^fargo;
|
|
|
|
include snippets/publik-ssl.conf;
|
|
|
|
access_log /var/log/nginx/fargo-access.log combined_full;
|
|
error_log /var/log/nginx/fargo-error.log;
|
|
|
|
location ~ ^/static/(.+)$ {
|
|
root /;
|
|
try_files /var/lib/fargo/tenants/$host/static/$1
|
|
/var/lib/fargo/tenants/$host/theme/static/$1
|
|
/var/lib/fargo/collectstatic/$1
|
|
=404;
|
|
}
|
|
|
|
location /robots.txt {
|
|
alias /var/lib/fargo/www/robots.txt;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://unix:/var/run/fargo/fargo.sock;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-SSL on;
|
|
proxy_set_header X-Forwarded-Protocol ssl;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
}
|