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;
name: root: nameValuePair "${name}" {
forceSSL = true;
useACMEHost = "${domain}";
useACMEHost = domain;
inherit root;
# Make my blog the default landing site
default = (name == domain);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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