25 lines
981 B
Django/Jinja
25 lines
981 B
Django/Jinja
# Template comes from the actual documentation: https://actualbudget.org/docs/config/reverse-proxies/#nginx
|
|
# It was however modified in some ways because the referenced files weren't created.
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name actual.kleinendorst.info;
|
|
|
|
client_max_body_size 20M; # The budgets can become quite large and need to be uploaded
|
|
|
|
# SSL via Let's Encrypt
|
|
ssl_certificate /etc/letsencrypt/live/actual.kleinendorst.info/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/actual.kleinendorst.info/privkey.pem; # managed by Certbot
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
|
|
set $upstream_address 127.0.0.1;
|
|
set $upstream_port 5006;
|
|
set $upstream_proto http;
|
|
proxy_pass $upstream_proto://$upstream_address:$upstream_port;
|
|
}
|
|
}
|