New domainname

This commit is contained in:
William 2023-09-01 10:47:47 -03:00
parent 6c3fad825d
commit 3093372e4d
16 changed files with 44 additions and 44 deletions

View file

@ -8,8 +8,8 @@
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."actual.baduhai.me" = {
useACMEHost = "baduhai.me";
services.nginx.virtualHosts."actual.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.actual}";

View file

@ -30,33 +30,33 @@
};
nginx.virtualHosts = {
"bazarr.baduhai.me" = {
useACMEHost = "baduhai.me";
"bazarr.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.bazaar}";
};
"jackett.baduhai.me" = {
useACMEHost = "baduhai.me";
"jackett.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jackett}";
};
"qbittorrent.baduhai.me" = {
useACMEHost = "baduhai.me";
"qbittorrent.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass =
"http://127.0.0.1:${config.ports.qbittorrent}";
};
"radarr.baduhai.me" = {
useACMEHost = "baduhai.me";
"radarr.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.radarr}";
};
"sonarr.baduhai.me" = {
useACMEHost = "baduhai.me";
"sonarr.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.sonarr}";

View file

@ -8,11 +8,11 @@
behindProxy = true;
datastorePath = "/data/changedetection";
port = lib.toInt "${config.ports.changedetection-io}";
baseURL = "https://detect.baduhai.me";
baseURL = "https://detect.baduhai.dev";
};
nginx.virtualHosts."detect.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."detect.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass =

View file

@ -9,8 +9,8 @@
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."cinny.baduhai.me" = {
useACMEHost = "baduhai.me";
services.nginx.virtualHosts."cinny.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny}";

View file

@ -9,8 +9,8 @@
openFirewall = true;
};
nginx.virtualHosts."jellyfin.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."jellyfin.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jellyfin}";

View file

@ -8,8 +8,8 @@
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."librespeed.baduhai.me" = {
useACMEHost = "baduhai.me";
services.nginx.virtualHosts."librespeed.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}";

View file

@ -8,8 +8,8 @@
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."logseq.baduhai.me" = {
useACMEHost = "baduhai.me";
services.nginx.virtualHosts."logseq.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.logseq}";

View file

@ -7,7 +7,7 @@
extraEnvironment = { RUST_MIN_STACK = "16777216"; };
package = pkgs.unstable.matrix-conduit;
settings.global = {
server_name = "baduhai.me";
server_name = "baduhai.dev";
address = "127.0.0.1";
port = 6167;
max_request_size = 20000000;
@ -17,21 +17,21 @@
};
};
nginx.virtualHosts."matrix.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."matrix.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny2}";
locations."/_matrix/".proxyPass = "http://127.0.0.1:6167$request_uri";
locations."= /.well-known/matrix/client" = {
alias = pkgs.writeText "matrix-wk-client" ''
{ "m.homeserver": { "base_url": "https://matrix.baduhai.me" } }
{ "m.homeserver": { "base_url": "https://matrix.baduhai.dev" } }
'';
extraConfig = "add_header Access-Control-Allow-Origin *;";
};
locations."= /.well-known/matrix/server" = {
alias = pkgs.writeText "matrix-wk-server" ''
{ "m.server": "matrix.baduhai.me:443" }
{ "m.server": "matrix.baduhai.dev:443" }
'';
extraConfig = "add_header Access-Control-Allow-Origin *;";
};

View file

@ -6,7 +6,7 @@
enable = true;
package = pkgs.nextcloud27;
datadir = "/data/nextcloud";
hostName = "nextcloud.baduhai.me";
hostName = "nextcloud.baduhai.dev";
configureRedis = true;
https = true;
autoUpdateApps.enable = true;
@ -25,7 +25,7 @@
};
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
useACMEHost = "baduhai.me";
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
};

View file

@ -8,8 +8,8 @@
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."baduhai.me" = {
useACMEHost = "baduhai.me";
virtualHosts."baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
root = inputs.homepage;

View file

@ -9,8 +9,8 @@
userDir = "/data/node-red";
};
nginx.virtualHosts."node-red.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."node-red.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass =

View file

@ -12,8 +12,8 @@
extraConfig = { PAPERLESS_OCR_LANGUAGE = "eng+por+deu"; };
};
nginx.virtualHosts."paperless.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."paperless.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.paperless}";

View file

@ -13,8 +13,8 @@
};
};
nginx.virtualHosts."searx.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."searx.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.searx}";

View file

@ -9,7 +9,7 @@
dnsProvider = "cloudflare";
credentialsFile = config.age.secrets.cloudflare.path;
};
certs."baduhai.me" = { extraDomainNames = [ "*.baduhai.me" ]; };
certs."baduhai.dev" = { extraDomainNames = [ "*.baduhai.dev" ]; };
};
boot.kernel.sysctl = {

View file

@ -5,15 +5,15 @@
vaultwarden = {
enable = true;
config = {
DOMAIN = "https://vaultwarden.baduhai.me";
DOMAIN = "https://vaultwarden.baduhai.dev";
SIGNUPS_ALLOWED = true;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = "${config.ports.vaultwarden}";
};
};
nginx.virtualHosts."vaultwarden.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."vaultwarden.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.vaultwarden}";

View file

@ -85,8 +85,8 @@ in {
configFile = "${configyaml}";
};
nginx.virtualHosts."yousable.baduhai.me" = {
useACMEHost = "baduhai.me";
nginx.virtualHosts."yousable.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.yousable}";