diff options
| author | polwex <polwex@sortug.com> | 2025-10-14 06:36:38 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-14 06:36:38 +0700 |
| commit | c47302c9517d3d949bd6a3fbdfbda0eca3095eac (patch) | |
| tree | e339fd5fd40ae5e5bb42a384c5ebc1dcf0788752 /hosts/cloud | |
| parent | a61c5db40ee85f98e6f40417c73ef10ca566aa19 (diff) | |
m
Diffstat (limited to 'hosts/cloud')
| -rw-r--r-- | hosts/cloud/span/configuration.nix | 2 | ||||
| -rw-r--r-- | hosts/cloud/span/nginx.nix | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/hosts/cloud/span/configuration.nix b/hosts/cloud/span/configuration.nix index d887d37..01ffddc 100644 --- a/hosts/cloud/span/configuration.nix +++ b/hosts/cloud/span/configuration.nix @@ -11,9 +11,9 @@ ../../base.nix ./hardware-configuration.nix ./users.nix - ./mail.nix ../packages.nix ./nginx.nix + # ./mail.nix ]; # Bootloader. diff --git a/hosts/cloud/span/nginx.nix b/hosts/cloud/span/nginx.nix index 9bfa8ea..1079c7d 100644 --- a/hosts/cloud/span/nginx.nix +++ b/hosts/cloud/span/nginx.nix @@ -36,6 +36,19 @@ ''; }; }; + virtualHosts."uuu.spandrell.ch" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8080"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = '' + limit_req zone=blog burst=20 nodelay; + proxy_set_header Host $Host; + proxy_set_header Forwarded for=$remote_addr; + ''; + }; + }; virtualHosts."s3.spandrell.ch" = { extraConfig = '' client_max_body_size 128M; |
