diff options
Diffstat (limited to 'hosts/cloud')
-rw-r--r-- | hosts/cloud/sortug/configuration.nix | 2 | ||||
-rw-r--r-- | hosts/cloud/span/nginx.nix | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/hosts/cloud/sortug/configuration.nix b/hosts/cloud/sortug/configuration.nix index fa4aad2..308f010 100644 --- a/hosts/cloud/sortug/configuration.nix +++ b/hosts/cloud/sortug/configuration.nix @@ -65,7 +65,7 @@ enable = true; domains = ["2001:4860:4860::8888" "2001:4860:4860::8844"]; }; - services.tailscale.enable = true; + # services.tailscale.enable = true; # networking.firewall = { # enable = true; 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; ''; }; }; |