feat: samcsamcsamc
This commit is contained in:
parent
eba11b0d42
commit
6e33f203ba
1 changed files with 4 additions and 5 deletions
|
|
@ -42,7 +42,7 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
forceSSL = false;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
|
|
@ -71,16 +71,15 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"^~ /.well-known" = {
|
"^~ /.well-known" = {
|
||||||
priority = lib.mkForce 9000;
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
location ~ ^/\\.well-known/(?:carddav|caldav)$ {
|
location ~ ^/\.well-known/(?:carddav|caldav)$ {
|
||||||
return 301 /nextcloud/remote.php/dav;
|
return 301 /nextcloud/remote.php/dav;
|
||||||
}
|
}
|
||||||
location ~ ^/\\.well-known/host-meta(?:\\.json)?$ {
|
location ~ ^/\.well-known/host-meta(?:\.json)?$ {
|
||||||
return 301 /nextcloud/public.php?service=host-meta-json;
|
return 301 /nextcloud/public.php?service=host-meta-json;
|
||||||
}
|
}
|
||||||
location ~ ^/\\.well-known/(?!acme-challenge|pki-validation) {
|
location ~ ^/\.well-known/(?!acme-challenge|pki-validation) {
|
||||||
return 301 /nextcloud/index.php$request_uri;
|
return 301 /nextcloud/index.php$request_uri;
|
||||||
}
|
}
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue