diff options
Diffstat (limited to 'hosts/cloud/bkk')
-rw-r--r-- | hosts/cloud/bkk/configuration.nix | 12 | ||||
-rw-r--r-- | hosts/cloud/bkk/nginx.nix | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/hosts/cloud/bkk/configuration.nix b/hosts/cloud/bkk/configuration.nix index 16281d9..da71a54 100644 --- a/hosts/cloud/bkk/configuration.nix +++ b/hosts/cloud/bkk/configuration.nix @@ -34,6 +34,18 @@ # listen-http = ":8090"; # }; # }; + + services.headscale = { + enable = true; + address = "0.0.0.0"; + port = 8001; + settings = { + server_url = "https://head.urbit.men"; + dns.baseDomain = "urbit.men"; + logtail.enabled = false; + }; + }; + system.stateVersion = "24.05"; # Did you read the comment? environment.systemPackages = with pkgs; [ tmux diff --git a/hosts/cloud/bkk/nginx.nix b/hosts/cloud/bkk/nginx.nix index c73eaeb..03c13ce 100644 --- a/hosts/cloud/bkk/nginx.nix +++ b/hosts/cloud/bkk/nginx.nix @@ -25,6 +25,14 @@ proxy_cache off; ''; }; + virtualHosts."head.urbit.men" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8001"; + proxyWebsockets = true; # needed if you need to use WebSocket + }; + }; virtualHosts."m.urbit.men" = { enableACME = true; forceSSL = true; |