diff options
author | polwex <polwex@sortug.com> | 2024-10-06 20:06:35 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2024-10-06 20:06:35 +0700 |
commit | 3a8f180df3cb9c336ff4304be4b3ca365215ba60 (patch) | |
tree | 77bf3f8b5a420a43fadbf97ab18435954a52553f /hosts/cloud/span/nginx.nix | |
parent | 3d933f65cbe50c49d42fe97bd59c5bb15a3d4d09 (diff) |
m
Diffstat (limited to 'hosts/cloud/span/nginx.nix')
-rw-r--r-- | hosts/cloud/span/nginx.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/hosts/cloud/span/nginx.nix b/hosts/cloud/span/nginx.nix index cda5ab4..4da4b68 100644 --- a/hosts/cloud/span/nginx.nix +++ b/hosts/cloud/span/nginx.nix @@ -1,11 +1,14 @@ -{ config, pkgs, ... }: { - +{ + config, + pkgs, + ... +}: { services.nginx = { enable = true; appendHttpConfig = '' limit_req_zone $binary_remote_addr zone=blog:10m rate=10r/s; ''; - virtualHosts."spandrell.ch" = { + virtualHosts."spandrell.ch" = { enableACME = true; forceSSL = true; locations."/" = { @@ -18,7 +21,7 @@ ''; }; }; - virtualHosts."u.spandrell.ch" = { + virtualHosts."u.spandrell.ch" = { enableACME = true; forceSSL = true; locations."/" = { @@ -31,14 +34,17 @@ ''; }; }; - virtualHosts."s3.spandrell.ch" = { + virtualHosts."s3.spandrell.ch" = { + extraConfig = '' + client_max_body_size 128M; + ''; enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:9000"; proxyWebsockets = true; # needed if you need to use WebSocket extraConfig = '' - proxy_set_header Host $Host; + proxy_set_header Host $Host; ''; }; }; |