refactor: put headplane under same subdomain
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
e98d47e7c1
commit
ba41e6bfb3
1 changed files with 5 additions and 10 deletions
|
|
@ -62,15 +62,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."headscale.escapeangle.com" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:${toString config.services.headscale.port}";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.headplane = {
|
services.headplane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
agent.enable = false;
|
agent.enable = false;
|
||||||
|
|
@ -93,10 +84,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."headplane.escapeangle.com" = {
|
services.nginx.virtualHosts."headscale.escapeangle.com" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.headscale.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
locations."/admin" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.headplane.settings.server.port}";
|
proxyPass = "http://127.0.0.1:${toString config.services.headplane.settings.server.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue