summaryrefslogtreecommitdiff
path: root/hosts/cloud/span/nginx.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-14 06:36:38 +0700
committerpolwex <polwex@sortug.com>2025-10-14 06:36:38 +0700
commitc47302c9517d3d949bd6a3fbdfbda0eca3095eac (patch)
treee339fd5fd40ae5e5bb42a384c5ebc1dcf0788752 /hosts/cloud/span/nginx.nix
parenta61c5db40ee85f98e6f40417c73ef10ca566aa19 (diff)
m
Diffstat (limited to 'hosts/cloud/span/nginx.nix')
-rw-r--r--hosts/cloud/span/nginx.nix13
1 files changed, 13 insertions, 0 deletions
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;