ansible-roles/roles/unmaintained/papermerge/templates/nginx.conf.j2
2021-12-01 19:13:34 +01:00

19 lines
415 B
Django/Jinja

server {
server_name papermerge;
listen {{ papermerge_port }};
location /static/ {
alias {{ papermerge_root_dir }}/app/static/;
}
location /media/ {
alias {{ papermerge_root_dir }}/app/media/;
}
location / {
proxy_pass http://127.0.0.1:{{ papermerge_port | int + 1}};
# Don't restrict size here. You will probably put another front proxy anyway
client_max_body_size 200m;
}
}