Files
hassio-addons/nextcloud/rootfs/defaults/nginx_addition
2025-07-06 22:13:06 +02:00

34 lines
847 B
Plaintext

add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
fastcgi_connect_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
location = /.well-known/host-meta {
return 301 $scheme://$http_host/public.php?service=host-meta;
}
location = /.well-known/host-meta.json {
return 301 $scheme://$http_host/public.php?service=host-meta-json;
}
location = /.well-known/carddav {
return 301 $scheme://$http_host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$http_host/remote.php/dav;
}
location = /.well-known/webfinger{
return 301 $scheme://$http_host/index.php/.well-known/webfinger;
}
location = /.well-known/nodeinfo{
return 301 $scheme://$http_host/index.php/.well-known/nodeinfo;
}
}