mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
route domains to new service location
This commit is contained in:
parent
91f5f886d7
commit
ac7b333741
|
@ -8,6 +8,7 @@
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
proxyPass = "http://${host}:${toString port}/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# bind to tailscale ip
|
# bind to tailscale ip
|
||||||
proxy_bind 100.88.118.60;
|
proxy_bind 100.88.118.60;
|
||||||
|
@ -15,10 +16,10 @@
|
||||||
auth_pam "Password Required";
|
auth_pam "Password Required";
|
||||||
auth_pam_service_name "nginx";
|
auth_pam_service_name "nginx";
|
||||||
'';
|
'';
|
||||||
proxyPass = "http://${host}:${toString port}/";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lpt2 = "vinzenz-lpt2.donkey-pentatonic.ts.net";
|
lpt2 = "vinzenz-lpt2.donkey-pentatonic.ts.net";
|
||||||
|
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./modules {
|
(import ./modules {
|
||||||
|
@ -61,10 +62,10 @@ in {
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"vscode.${servicesDomain}" = lib.mkMerge [
|
"vscode.${servicesDomain}" = lib.mkMerge [
|
||||||
(mkServiceConfig lpt2 8542)
|
(mkServiceConfig pc2 8542)
|
||||||
{locations."/" .proxyWebsockets = true;}
|
{locations."/" .proxyWebsockets = true;}
|
||||||
];
|
];
|
||||||
"preon-app.${servicesDomain}" = mkServiceConfig lpt2 8543;
|
"preon-app.${servicesDomain}" = mkServiceConfig pc2 8543;
|
||||||
"preon-api.${servicesDomain}" = mkServiceConfig lpt2 8544;
|
"preon-api.${servicesDomain}" = mkServiceConfig lpt2 8544;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue