2020-12-24 14:27:31 +01:00
|
|
|
server
|
|
|
|
{
|
|
|
|
server_name {{domain}};
|
|
|
|
|
2023-09-02 13:13:28 +02:00
|
|
|
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
2020-12-24 14:27:31 +01:00
|
|
|
|
|
|
|
# Remove X-Powered-By, which is an information leak
|
|
|
|
fastcgi_hide_header X-Powered-By;
|
|
|
|
|
2023-11-04 14:20:59 +01:00
|
|
|
# Set X-Robots-Tag to noindex, nofollow on all responses
|
|
|
|
add_header X-Robots-Tag "noindex, nofollow";
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
# set max upload size
|
|
|
|
client_max_body_size 10G;
|
|
|
|
client_body_buffer_size 400M;
|
|
|
|
fastcgi_buffers 64 4K;
|
|
|
|
|
2023-09-02 13:13:28 +02:00
|
|
|
{% include 'roles/docker-reverse-proxy/templates/proxy_pass.conf.j2' %}
|
2020-12-24 14:27:31 +01:00
|
|
|
|
|
|
|
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/; }
|
2022-04-04 10:39:12 +02:00
|
|
|
location = /.well-known/webfinger { return 301 /index.php/.well-known/webfinger; }
|
|
|
|
location = /.well-known/nodeinfo { return 301 /index.php/.well-known/nodeinfo; }
|
2020-12-24 14:27:31 +01:00
|
|
|
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
|
|
|
}
|