services: s/= "${domain}"/= domain

This commit is contained in:
Bruno BELANYI 2021-02-24 20:50:05 +00:00
parent aa558745f9
commit d23423b92c
11 changed files with 16 additions and 16 deletions

View file

@ -21,7 +21,7 @@ let
makeVirtualHost = with lib.attrsets; makeVirtualHost = with lib.attrsets;
name: root: nameValuePair "${name}" { name: root: nameValuePair "${name}" {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
inherit root; inherit root;
# Make my blog the default landing site # Make my blog the default landing site
default = (name == domain); default = (name == domain);

View file

@ -44,7 +44,7 @@ in
services.nginx.virtualHosts."${calibreDomain}" = { services.nginx.virtualHosts."${calibreDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString cfg.port}/"; locations."/".proxyPass = "http://localhost:${toString cfg.port}/";
}; };

View file

@ -62,7 +62,7 @@ in
# Proxy to Gitea # Proxy to Gitea
services.nginx.virtualHosts."${giteaDomain}" = { services.nginx.virtualHosts."${giteaDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString cfg.port}/"; locations."/".proxyPass = "http://localhost:${toString cfg.port}/";
}; };

View file

@ -24,7 +24,7 @@ in
services.nginx.virtualHosts."${jackettDomain}" = services.nginx.virtualHosts."${jackettDomain}" =
lib.mkIf cfg.jackett.enable { lib.mkIf cfg.jackett.enable {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString jackettPort}/"; locations."/".proxyPass = "http://localhost:${toString jackettPort}/";
}; };
@ -36,7 +36,7 @@ in
services.nginx.virtualHosts."${nzbhydraDomain}" = services.nginx.virtualHosts."${nzbhydraDomain}" =
lib.mkIf cfg.nzbhydra.enable { lib.mkIf cfg.nzbhydra.enable {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString nzbhydraPort}/"; locations."/".proxyPass = "http://localhost:${toString nzbhydraPort}/";
}; };

View file

@ -19,7 +19,7 @@ in
# Proxy to Jellyfin # Proxy to Jellyfin
services.nginx.virtualHosts."${jellyfinDomain}" = { services.nginx.virtualHosts."${jellyfinDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:8096/"; proxyPass = "http://localhost:8096/";

View file

@ -71,7 +71,7 @@ in
services.nginx.virtualHosts = { services.nginx.virtualHosts = {
"matrix.${domain}" = { "matrix.${domain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations = locations =
let let
@ -100,7 +100,7 @@ in
"matrix.${domain}_federation" = rec { "matrix.${domain}_federation" = rec {
forceSSL = true; forceSSL = true;
serverName = "matrix.${domain}"; serverName = "matrix.${domain}";
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".return = "404"; locations."/".return = "404";
@ -117,7 +117,7 @@ in
"${domain}" = { "${domain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."= /.well-known/matrix/server".extraConfig = locations."= /.well-known/matrix/server".extraConfig =
let let
@ -145,7 +145,7 @@ in
# Element Web app deployment # Element Web app deployment
"chat.${domain}" = { "chat.${domain}" = {
useACMEHost = "${domain}"; useACMEHost = domain;
forceSSL = true; forceSSL = true;
root = pkgs.element-web.override { root = pkgs.element-web.override {
@ -153,7 +153,7 @@ in
default_server_config = { default_server_config = {
"m.homeserver" = { "m.homeserver" = {
"base_url" = "https://matrix.${domain}"; "base_url" = "https://matrix.${domain}";
"server_name" = "${domain}"; "server_name" = domain;
}; };
"m.identity_server" = { "m.identity_server" = {
"base_url" = "https://vector.im"; "base_url" = "https://vector.im";

View file

@ -59,7 +59,7 @@ in
# Proxy to Jellyfin # Proxy to Jellyfin
services.nginx.virtualHosts."${minifluxDomain}" = { services.nginx.virtualHosts."${minifluxDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString cfg.privatePort}/"; locations."/".proxyPass = "http://localhost:${toString cfg.privatePort}/";
}; };

View file

@ -61,7 +61,7 @@ in
services.nginx.virtualHosts."${nextcloudDomain}" = { services.nginx.virtualHosts."${nextcloudDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:3000/"; locations."/".proxyPass = "http://localhost:3000/";
}; };

View file

@ -26,7 +26,7 @@ let
(mapAttrs' (mapAttrs'
(service: port: nameValuePair "${service}.${domain}" { (service: port: nameValuePair "${service}.${domain}" {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${builtins.toString port}/"; locations."/".proxyPass = "http://localhost:${builtins.toString port}/";
}) })

View file

@ -19,7 +19,7 @@ in
services.nginx.virtualHosts."${rss-bridgeDomain}" = { services.nginx.virtualHosts."${rss-bridgeDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
}; };
}; };
} }

View file

@ -60,7 +60,7 @@ in
# seems to have stalled # seems to have stalled
services.nginx.virtualHosts."${webuiDomain}" = { services.nginx.virtualHosts."${webuiDomain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "${domain}"; useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString transmissionRpcPort}"; locations."/".proxyPass = "http://localhost:${toString transmissionRpcPort}";
}; };