20 lines
484 B
Plaintext
20 lines
484 B
Plaintext
|
# code: language=ansible-jinja
|
||
|
server {
|
||
|
listen 8080;
|
||
|
server_name {{ apps_vars.nextcloud.domain }}
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://nextcloud:80;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
|
||
|
location = /.well-known/carddav {
|
||
|
return 301 $scheme://$host/remote.php/dav;
|
||
|
}
|
||
|
|
||
|
location = /.well-known/caldav {
|
||
|
return 301 $scheme://$host/remote.php/dav;
|
||
|
}
|
||
|
}
|