Move well-known delegation to main domain

This commit is contained in:
2026-06-02 15:21:03 +02:00
parent 4cd14c0838
commit 488969abd7
+10 -10
View File
@@ -34,21 +34,12 @@
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
'';
virtualHosts = {
# Old domain being redirected
# Redirection of the old domain
"coolneng.duckdns.org" = {
useACMEHost = "coolneng.duckdns.org";
forceSSL = true;
locations = {
"/".return = "301 https://psydnd.org$request_uri";
# Delegation for Matrix
"/.well-known/" = {
alias = "${../well-known}" + "/";
extraConfig = ''
${config.services.nginx.commonHttpConfig}
default_type application/json;
add_header Access-Control-Allow-Origin * always;
'';
};
};
};
# Redirect subdomains
@@ -61,6 +52,15 @@
"psydnd.org" = {
useACMEHost = "psydnd.org";
forceSSL = true;
# Delegation for Matrix
locations."/.well-known/" = {
alias = "${../well-known}" + "/";
extraConfig = ''
${config.services.nginx.commonHttpConfig}
default_type application/json;
add_header Access-Control-Allow-Origin * always;
'';
};
};
"radicale.psydnd.org" = {
useACMEHost = "psydnd.org";