summaryrefslogtreecommitdiff
path: root/hosts/cloud/bkk
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-01-04 04:08:05 +0700
committerpolwex <polwex@sortug.com>2025-01-04 04:08:05 +0700
commit886532670b2d3f91f615a63f6b82f2512a641acc (patch)
tree8803d51ed2a341689202b0d3249ce5316ef6e4c0 /hosts/cloud/bkk
parent8ba8980c12a1fb05970dead6228ddc3129ff5868 (diff)
m
Diffstat (limited to 'hosts/cloud/bkk')
-rw-r--r--hosts/cloud/bkk/configuration.nix20
-rw-r--r--hosts/cloud/bkk/nginx.nix18
2 files changed, 28 insertions, 10 deletions
diff --git a/hosts/cloud/bkk/configuration.nix b/hosts/cloud/bkk/configuration.nix
index 94b9451..c74cde1 100644
--- a/hosts/cloud/bkk/configuration.nix
+++ b/hosts/cloud/bkk/configuration.nix
@@ -35,16 +35,16 @@
# };
# };
- 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;
- };
- };
+ # 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; [
diff --git a/hosts/cloud/bkk/nginx.nix b/hosts/cloud/bkk/nginx.nix
index ea6b785..3314674 100644
--- a/hosts/cloud/bkk/nginx.nix
+++ b/hosts/cloud/bkk/nginx.nix
@@ -25,6 +25,24 @@
proxy_cache off;
'';
};
+ virtualHosts."p.urbit.men" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:8083";
+ # proxyWebsockets = true; # needed if you need to use WebSocket
+ extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_set_header Forwarded $proxy_add_x_forwarded_for;
+ '';
+ };
+ extraConfig = ''
+ chunked_transfer_encoding off;
+ proxy_http_version 1.1;
+ proxy_buffering off;
+ proxy_cache off;
+ '';
+ };
virtualHosts."head.urbit.men" = {
enableACME = true;
forceSSL = true;