New domainname
This commit is contained in:
parent
6c3fad825d
commit
3093372e4d
16 changed files with 44 additions and 44 deletions
|
|
@ -8,8 +8,8 @@
|
||||||
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."actual.baduhai.me" = {
|
services.nginx.virtualHosts."actual.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.actual}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.actual}";
|
||||||
|
|
|
||||||
|
|
@ -30,33 +30,33 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts = {
|
nginx.virtualHosts = {
|
||||||
"bazarr.baduhai.me" = {
|
"bazarr.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.bazaar}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.bazaar}";
|
||||||
};
|
};
|
||||||
"jackett.baduhai.me" = {
|
"jackett.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jackett}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jackett}";
|
||||||
};
|
};
|
||||||
"qbittorrent.baduhai.me" = {
|
"qbittorrent.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass =
|
locations."/".proxyPass =
|
||||||
"http://127.0.0.1:${config.ports.qbittorrent}";
|
"http://127.0.0.1:${config.ports.qbittorrent}";
|
||||||
};
|
};
|
||||||
"radarr.baduhai.me" = {
|
"radarr.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.radarr}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.radarr}";
|
||||||
};
|
};
|
||||||
"sonarr.baduhai.me" = {
|
"sonarr.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.sonarr}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.sonarr}";
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
behindProxy = true;
|
behindProxy = true;
|
||||||
datastorePath = "/data/changedetection";
|
datastorePath = "/data/changedetection";
|
||||||
port = lib.toInt "${config.ports.changedetection-io}";
|
port = lib.toInt "${config.ports.changedetection-io}";
|
||||||
baseURL = "https://detect.baduhai.me";
|
baseURL = "https://detect.baduhai.dev";
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."detect.baduhai.me" = {
|
nginx.virtualHosts."detect.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass =
|
locations."/".proxyPass =
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."cinny.baduhai.me" = {
|
services.nginx.virtualHosts."cinny.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny}";
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."jellyfin.baduhai.me" = {
|
nginx.virtualHosts."jellyfin.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jellyfin}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jellyfin}";
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."librespeed.baduhai.me" = {
|
services.nginx.virtualHosts."librespeed.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}";
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."logseq.baduhai.me" = {
|
services.nginx.virtualHosts."logseq.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.logseq}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.logseq}";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
extraEnvironment = { RUST_MIN_STACK = "16777216"; };
|
extraEnvironment = { RUST_MIN_STACK = "16777216"; };
|
||||||
package = pkgs.unstable.matrix-conduit;
|
package = pkgs.unstable.matrix-conduit;
|
||||||
settings.global = {
|
settings.global = {
|
||||||
server_name = "baduhai.me";
|
server_name = "baduhai.dev";
|
||||||
address = "127.0.0.1";
|
address = "127.0.0.1";
|
||||||
port = 6167;
|
port = 6167;
|
||||||
max_request_size = 20000000;
|
max_request_size = 20000000;
|
||||||
|
|
@ -17,21 +17,21 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."matrix.baduhai.me" = {
|
nginx.virtualHosts."matrix.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny2}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny2}";
|
||||||
locations."/_matrix/".proxyPass = "http://127.0.0.1:6167$request_uri";
|
locations."/_matrix/".proxyPass = "http://127.0.0.1:6167$request_uri";
|
||||||
locations."= /.well-known/matrix/client" = {
|
locations."= /.well-known/matrix/client" = {
|
||||||
alias = pkgs.writeText "matrix-wk-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 *;";
|
extraConfig = "add_header Access-Control-Allow-Origin *;";
|
||||||
};
|
};
|
||||||
locations."= /.well-known/matrix/server" = {
|
locations."= /.well-known/matrix/server" = {
|
||||||
alias = pkgs.writeText "matrix-wk-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 *;";
|
extraConfig = "add_header Access-Control-Allow-Origin *;";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud27;
|
package = pkgs.nextcloud27;
|
||||||
datadir = "/data/nextcloud";
|
datadir = "/data/nextcloud";
|
||||||
hostName = "nextcloud.baduhai.me";
|
hostName = "nextcloud.baduhai.dev";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
https = true;
|
https = true;
|
||||||
autoUpdateApps.enable = true;
|
autoUpdateApps.enable = true;
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts."baduhai.me" = {
|
virtualHosts."baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
root = inputs.homepage;
|
root = inputs.homepage;
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
userDir = "/data/node-red";
|
userDir = "/data/node-red";
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."node-red.baduhai.me" = {
|
nginx.virtualHosts."node-red.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass =
|
locations."/".proxyPass =
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@
|
||||||
extraConfig = { PAPERLESS_OCR_LANGUAGE = "eng+por+deu"; };
|
extraConfig = { PAPERLESS_OCR_LANGUAGE = "eng+por+deu"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."paperless.baduhai.me" = {
|
nginx.virtualHosts."paperless.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.paperless}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.paperless}";
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."searx.baduhai.me" = {
|
nginx.virtualHosts."searx.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.searx}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.searx}";
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
credentialsFile = config.age.secrets.cloudflare.path;
|
credentialsFile = config.age.secrets.cloudflare.path;
|
||||||
};
|
};
|
||||||
certs."baduhai.me" = { extraDomainNames = [ "*.baduhai.me" ]; };
|
certs."baduhai.dev" = { extraDomainNames = [ "*.baduhai.dev" ]; };
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@
|
||||||
vaultwarden = {
|
vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
DOMAIN = "https://vaultwarden.baduhai.me";
|
DOMAIN = "https://vaultwarden.baduhai.dev";
|
||||||
SIGNUPS_ALLOWED = true;
|
SIGNUPS_ALLOWED = true;
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
ROCKET_ADDRESS = "127.0.0.1";
|
||||||
ROCKET_PORT = "${config.ports.vaultwarden}";
|
ROCKET_PORT = "${config.ports.vaultwarden}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."vaultwarden.baduhai.me" = {
|
nginx.virtualHosts."vaultwarden.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.vaultwarden}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.vaultwarden}";
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,8 @@ in {
|
||||||
configFile = "${configyaml}";
|
configFile = "${configyaml}";
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."yousable.baduhai.me" = {
|
nginx.virtualHosts."yousable.baduhai.dev" = {
|
||||||
useACMEHost = "baduhai.me";
|
useACMEHost = "baduhai.dev";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.yousable}";
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.yousable}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue