fix: allow 25MB uploads for migrations

This commit is contained in:
Daniel Hougaard
2024-10-10 03:37:08 +04:00
parent 06f9a1484b
commit 662f1a31f6
3 changed files with 33 additions and 0 deletions

View File

@@ -15,6 +15,21 @@ server {
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
location /api/v3/migrate {
client_max_body_size 25M;
proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend:4000;
proxy_redirect off;
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
location /.well-known/est {
proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@@ -17,6 +17,21 @@ server {
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
location /api/v3/migrate {
client_max_body_size 25M;
proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend:4000;
proxy_redirect off;
proxy_cookie_path / "/; HttpOnly; SameSite=strict";
}
location /.well-known/est {
proxy_set_header X-Real-RIP $remote_addr;