nodes/htz-cloud.sewfile: deploy nginx for seafile
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-06-01 11:35:56 +02:00
parent 85b3adf671
commit f0d962ab04
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 30 additions and 3 deletions

View file

@ -0,0 +1,25 @@
client_max_body_size 0;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_read_timeout 1200s;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
proxy_request_buffering off;
}
location /media {
alias /opt/seafile/seafile-server-latest/seahub/media;
}

View file

@ -9,9 +9,11 @@ nodes['htz-cloud.sewfile'] = {
'webserver',
},
'metadata': {
'letsencrypt': {
'domains': {
'sewfile.franzi.business': set(),
'nginx': {
'vhosts': {
'sewfile.franzi.business': {
'extras': True,
},
},
},
'os': 'debian',