diff options
author | polwex <polwex@sortug.com> | 2025-05-17 07:24:14 +0000 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-05-17 07:24:14 +0000 |
commit | 9d89a55dff02122ebef9d8c7b388707084bac2fa (patch) | |
tree | 015a6a49ddc1f484960e7977e624d1d971a45453 /hosts/cloud | |
parent | bb5002c60d57600ecb812720106a88df80d07362 (diff) | |
parent | 3efdd55d5cc2e784c6934e9d133f16844c324aad (diff) |
Merge branch 'master' of mygit:/polwex/nixconf
Diffstat (limited to 'hosts/cloud')
-rw-r--r-- | hosts/cloud/bkk/nginx.nix | 36 | ||||
-rw-r--r-- | hosts/cloud/sortug/nginx.nix | 37 | ||||
-rw-r--r-- | hosts/cloud/sortug/packages.nix | 20 |
3 files changed, 65 insertions, 28 deletions
diff --git a/hosts/cloud/bkk/nginx.nix b/hosts/cloud/bkk/nginx.nix index 3314674..7de02ee 100644 --- a/hosts/cloud/bkk/nginx.nix +++ b/hosts/cloud/bkk/nginx.nix @@ -85,23 +85,23 @@ proxy_cache off; ''; }; - # virtualHosts."t.urbit.men" = { - # enableACME = true; - # forceSSL = true; - # locations."/" = { - # proxyPass = "http://127.0.0.1:8081"; - # # 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."t.urbit.men" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:3000"; + # 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; + ''; + }; }; } diff --git a/hosts/cloud/sortug/nginx.nix b/hosts/cloud/sortug/nginx.nix index 68a0c5b..5c129fb 100644 --- a/hosts/cloud/sortug/nginx.nix +++ b/hosts/cloud/sortug/nginx.nix @@ -58,6 +58,25 @@ proxyWebsockets = true; # needed if you need to use WebSocket }; }; + # polwex + virtualHosts."pw.sortug.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8091"; + # 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 = '' + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + ''; + }; virtualHosts."p.sortug.com" = { enableACME = true; forceSSL = true; @@ -76,6 +95,24 @@ proxy_cache off; ''; }; + virtualHosts."papa.sortug.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8924"; + # 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 = '' + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + ''; + }; virtualHosts."mcp.sortug.com" = { enableACME = true; forceSSL = true; diff --git a/hosts/cloud/sortug/packages.nix b/hosts/cloud/sortug/packages.nix index 6985acb..72ce5c4 100644 --- a/hosts/cloud/sortug/packages.nix +++ b/hosts/cloud/sortug/packages.nix @@ -1,9 +1,11 @@ -{ config, pkgs, ... }: - { - nixpkgs.config = { - allowUnfree = true; - }; + config, + pkgs, + ... +}: { + nixpkgs.config = { + allowUnfree = true; + }; environment.systemPackages = with pkgs; [ neovim @@ -31,7 +33,6 @@ testdisk tokei # Handy tool to see lines of code by language watchexec # Fileystem watcher/executor useful for speedy development - xsv # CSV file parsing utility just # Intriguing new make replacement mdcat # Markdown converter/reader for the CLI tree @@ -42,12 +43,11 @@ curl caddy # simple web server made with go innernet - + # s3 minio # databases - # postgresql - # sqlite + # postgresql + # sqlite ]; } - |