lab-ansible/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2
2023-12-22 21:57:19 +01:00

17 lines
421 B
Django/Jinja

# code: language=ansible-jinja
server {
listen 8080;
server_name {{ apps_vars.nextcloud.domain }};
resolver 127.0.0.11;
location / {
proxy_pass http://nextcloud:80;
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;
}
}