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;
makeHostInfo = subdomain: {
inherit subdomain;
root = "/var/www/${subdomain}";
};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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