diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-06-21 09:37:21 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-06-21 09:37:21 +0530 |
commit | 0d5b9ed74d9efbb11cda074b2e690c9e6dac8272 (patch) | |
tree | 796248641b32b7a3eee252c3cc6fc14b3c23a4b2 /os/kay/modules/www.nix | |
parent | 8550c0e84133accdf60d01433b1fbd6ce52d1baf (diff) |
Diffstat (limited to 'os/kay/modules/www.nix')
-rw-r--r-- | os/kay/modules/www.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix index 1e1eb79..6b8e285 100644 --- a/os/kay/modules/www.nix +++ b/os/kay/modules/www.nix @@ -169,6 +169,50 @@ in }; }; + "s3.${domain}" = defaultOpts // { + extraConfig = '' + # Allow special characters in headers + ignore_invalid_headers off; + # Allow any size file to be uploaded. + # Set to a value such as 1000m; to restrict file size to a specific value + client_max_body_size 0; + # Disable buffering + proxy_buffering off; + proxy_request_buffering off; + ''; + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:9000"; + extraConfig = '' + proxy_connect_timeout 300; + chunked_transfer_encoding off; + ''; + }; + }; + + "minio.${domain}" = defaultOpts // { + extraConfig = '' + # Allow special characters in headers + ignore_invalid_headers off; + # Allow any size file to be uploaded. + # Set to a value such as 1000m; to restrict file size to a specific value + client_max_body_size 0; + # Disable buffering + proxy_buffering off; + proxy_request_buffering off; + ''; + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:9003"; + extraConfig = '' + # This is necessary to pass the correct IP to be hashed + real_ip_header X-Real-IP; + proxy_connect_timeout 300; + chunked_transfer_encoding off; + ''; + }; + }; + "mta-sts.${domain}" = defaultOpts // { extraConfig = '' ssl_early_data on; |