forked from Juanbanpar/gul-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud.conf
30 lines (23 loc) · 910 Bytes
/
cloud.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
server {
server_name cloud-gul.uc3m.es;
listen 80;
access_log /var/log/nginx/cloud-gul.uc3m.es-access.log;
error_log /var/log/nginx/cloud-gul.uc3m.es-error.log;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
client_max_body_size 20G;
location / {
proxy_pass http://172.22.0.3;
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-Proto $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
}