mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
18
roles/unmaintained/papermerge/templates/nginx.conf.j2
Normal file
18
roles/unmaintained/papermerge/templates/nginx.conf.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user