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 = {
|
||||
enable = true;
|
||||
agent.enable = false;
|
||||
|
|
@ -93,10 +84,14 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."headplane.escapeangle.com" = {
|
||||
services.nginx.virtualHosts."headscale.escapeangle.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
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}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue