summaryrefslogtreecommitdiff
path: root/hosts/cloud/span/nginx.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cloud/span/nginx.nix')
-rw-r--r--hosts/cloud/span/nginx.nix18
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;
'';
};
};