lab-ansible/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2

17 lines
421 B
Plaintext
Raw Normal View History

2023-11-08 21:30:41 +00:00
# code: language=ansible-jinja
server {
listen 8080;
2023-11-11 14:47:51 +00:00
server_name {{ apps_vars.nextcloud.domain }};
2023-12-22 20:57:19 +00:00
resolver 127.0.0.11;
2023-11-08 21:30:41 +00:00
location / {
proxy_pass http://nextcloud:80;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2023-11-11 14:47:51 +00:00
proxy_set_header X-Forwarded-Proto "https";
2023-11-08 21:30:41 +00:00
}
2023-11-11 14:47:51 +00:00
location ~^/\.well-known/(cal|card)dav$ {
return 301 https://$host/remote.php/dav;
2023-11-08 21:30:41 +00:00
}
}