stuff
This commit is contained in:
parent
2828cef769
commit
a83edc4042
11 changed files with 73 additions and 149 deletions
|
@ -1,23 +1,22 @@
|
|||
# {config, ...}: let
|
||||
# virtualHostName = "";
|
||||
# in {
|
||||
# services.headscale = {
|
||||
# enable = true;
|
||||
# address = "127.0.0.1";
|
||||
# port = 8070;
|
||||
# server_url = "https://${virtualHostName}";
|
||||
# settings = {
|
||||
# logtail.enabled = false;
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# services.nginx.virtualHosts.${virtualHostName} = {
|
||||
# forceSSL = true;
|
||||
# enableACME = true;
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://localhost:${toString config.services.headscale.port}";
|
||||
# proxyWebsockets = true;
|
||||
# };
|
||||
# };
|
||||
# }
|
||||
{}
|
||||
{config, ...}: let
|
||||
virtualHostName = "headscale.helveticanonstandard.net";
|
||||
in {
|
||||
services.headscale = {
|
||||
enable = true;
|
||||
address = "127.0.0.1";
|
||||
port = 8010;
|
||||
server_url = "https://${virtualHostName}";
|
||||
settings = {
|
||||
logtail.enabled = false;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${virtualHostName} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${builtins.toString config.services.headscale.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue