lab-ansible/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2
2023-12-25 21:49:17 +01:00

19 lines
464 B
Django/Jinja

# THIS FILE IS MANAGED BY ANSIBLE
# code: language=ansible-jinja
server {
listen 8080;
server_name {{ apps_vars.nextcloud.domain }};
location / {
set $upstream http://nextcloud:80;
proxy_pass $upstream;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
location ~^/\.well-known/(cal|card)dav$ {
return 301 https://$host/remote.php/dav;
}
}