nixos: services: remove redundant subdomains

See previous commit for the defaults.
This commit is contained in:
Bruno BELANYI 2023-12-25 19:42:20 +01:00
parent b7a4bc063f
commit 6948424b81
22 changed files with 1 additions and 30 deletions

View file

@ -5,7 +5,6 @@ let
domain = config.networking.domain; domain = config.networking.domain;
makeHostInfo = subdomain: { makeHostInfo = subdomain: {
inherit subdomain;
root = "/var/www/${subdomain}"; root = "/var/www/${subdomain}";
}; };

View file

@ -42,7 +42,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
library = { library = {
subdomain = "library";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -47,7 +47,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
drone = { drone = {
subdomain = "drone";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -42,7 +42,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
flood = { flood = {
subdomain = "flood";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -119,12 +119,10 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
# Proxy to Gitea # Proxy to Gitea
git = { git = {
subdomain = "git";
inherit (cfg) port; inherit (cfg) port;
}; };
# Redirect `gitea.` to actual forge subdomain # Redirect `gitea.` to actual forge subdomain
gitea = { gitea = {
subdomain = "gitea";
redirect = config.services.gitea.settings.server.ROOT_URL; redirect = config.services.gitea.settings.server.ROOT_URL;
}; };
}; };

View file

@ -30,7 +30,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
jackett = { jackett = {
subdomain = "jackett";
port = jackettPort; port = jackettPort;
}; };
}; };
@ -43,7 +42,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
nzbhydra = { nzbhydra = {
subdomain = "nzbhydra";
port = nzbhydraPort; port = nzbhydraPort;
}; };
}; };
@ -56,7 +54,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
prowlarr = { prowlarr = {
subdomain = "prowlarr";
port = prowlarrPort; port = prowlarrPort;
}; };
}; };

View file

@ -19,7 +19,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
jellyfin = { jellyfin = {
subdomain = "jellyfin";
port = 8096; port = 8096;
extraConfig = { extraConfig = {
locations."/" = { locations."/" = {

View file

@ -100,7 +100,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
lohr = { lohr = {
subdomain = "lohr";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -120,7 +120,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
# Element Web app deployment # Element Web app deployment
chat = { chat = {
subdomain = "chat";
root = pkgs.element-web.override { root = pkgs.element-web.override {
conf = { conf = {
default_server_config = { default_server_config = {
@ -148,16 +147,13 @@ in
}; };
# Dummy VHosts for port collision detection # Dummy VHosts for port collision detection
matrix-federation = { matrix-federation = {
subdomain = "matrix-federation";
port = federationPort.private; port = federationPort.private;
}; };
matrix-client = { matrix-client = {
subdomain = "matrix-client";
port = clientPort.private; port = clientPort.private;
}; };
# Sliding sync # Sliding sync
matrix-sync = { matrix-sync = {
subdomain = "matrix-sync";
inherit (cfg.slidingSync) port; inherit (cfg.slidingSync) port;
}; };
}; };

View file

@ -45,7 +45,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
reader = { reader = {
subdomain = "reader";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -127,7 +127,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
monitoring = { monitoring = {
subdomain = "monitoring";
inherit (cfg.grafana) port; inherit (cfg.grafana) port;
}; };
}; };

View file

@ -49,7 +49,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
music = { music = {
subdomain = "music";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -404,7 +404,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
login = { login = {
subdomain = "login";
inherit (cfg.sso) port; inherit (cfg.sso) port;
}; };
}; };

View file

@ -45,7 +45,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
cache = { cache = {
subdomain = "cache";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -145,7 +145,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
paperless = { paperless = {
subdomain = "paperless";
inherit (cfg) port; inherit (cfg) port;
sso = { sso = {
enable = true; enable = true;

View file

@ -23,7 +23,6 @@ let
mkRedirection = service: { mkRedirection = service: {
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
${service} = { ${service} = {
subdomain = service;
port = ports.${service}; port = ports.${service};
}; };
}; };

View file

@ -33,7 +33,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
podgrab = { podgrab = {
subdomain = "podgrab";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -20,7 +20,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
sabnzbd = { sabnzbd = {
subdomain = "sabnzbd";
inherit port; inherit port;
}; };
}; };

View file

@ -72,7 +72,6 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
recipes = { recipes = {
subdomain = "recipes";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -82,7 +82,6 @@ in
# seems to have stalled # seems to have stalled
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
transmission = { transmission = {
subdomain = "transmission";
inherit (cfg) port; inherit (cfg) port;
}; };
}; };

View file

@ -60,8 +60,7 @@ in
# This is a weird setup # This is a weird setup
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
vikunja = { ${subdomain} = {
inherit subdomain;
# Serve the root for the web-ui # Serve the root for the web-ui
root = config.services.vikunja.package-frontend; root = config.services.vikunja.package-frontend;

View file

@ -54,12 +54,10 @@ in
my.services.nginx.virtualHosts = { my.services.nginx.virtualHosts = {
woodpecker = { woodpecker = {
subdomain = "woodpecker";
inherit (cfg) port; inherit (cfg) port;
}; };
# I might want to be able to RPC from other hosts in the future # I might want to be able to RPC from other hosts in the future
woodpecker-rpc = { woodpecker-rpc = {
subdomain = "woodpecker-rpc";
port = cfg.rpcPort; port = cfg.rpcPort;
}; };
}; };