mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
29 lines
943 B
Plaintext
29 lines
943 B
Plaintext
|
server
|
||
|
{
|
||
|
server_name {{domain}};
|
||
|
|
||
|
{% include 'roles/native-letsencrypt/templates/ssl_header.j2' %}
|
||
|
|
||
|
# Remove X-Powered-By, which is an information leak
|
||
|
fastcgi_hide_header X-Powered-By;
|
||
|
|
||
|
# set max upload size
|
||
|
client_max_body_size 10G;
|
||
|
client_body_buffer_size 400M;
|
||
|
fastcgi_buffers 64 4K;
|
||
|
|
||
|
{% include 'roles/native-nginx-docker-proxy/templates/proxy_pass.conf.j2' %}
|
||
|
|
||
|
location ^~ /.well-known {
|
||
|
rewrite ^/\.well-known/host-meta\.json /public.php?service=host-meta-json last;
|
||
|
rewrite ^/\.well-known/host-meta /public.php?service=host-meta last;
|
||
|
rewrite ^/\.well-known/webfinger /public.php?service=webfinger last;
|
||
|
rewrite ^/\.well-known/nodeinfo /public.php?service=nodeinfo last;
|
||
|
|
||
|
location = /.well-known/carddav { return 301 /remote.php/dav/; }
|
||
|
location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||
|
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
}
|