services: s/= "${domain}"/= domain
This commit is contained in:
parent
aa558745f9
commit
d23423b92c
|
@ -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);
|
||||
|
|
|
@ -44,7 +44,7 @@ in
|
|||
|
||||
services.nginx.virtualHosts."${calibreDomain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}/";
|
||||
};
|
||||
|
|
|
@ -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}/";
|
||||
};
|
||||
|
|
|
@ -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}/";
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
# Proxy to Jellyfin
|
||||
services.nginx.virtualHosts."${jellyfinDomain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8096/";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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}/";
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@ in
|
|||
|
||||
services.nginx.virtualHosts."${nextcloudDomain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:3000/";
|
||||
};
|
||||
|
|
|
@ -26,7 +26,7 @@ let
|
|||
(mapAttrs'
|
||||
(service: port: nameValuePair "${service}.${domain}" {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${builtins.toString port}/";
|
||||
})
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
|
||||
services.nginx.virtualHosts."${rss-bridgeDomain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
useACMEHost = domain;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue