fix(web): allow production uploads through web proxy
This commit is contained in:
@@ -8,6 +8,7 @@ server {
|
||||
gzip_vary on;
|
||||
gzip_min_length 1024;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml+rss;
|
||||
client_max_body_size 100m;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://xiaoxia-api-production:8000/api/;
|
||||
|
||||
@@ -69,6 +69,7 @@ def test_production_nginx_static_upstream_requires_web_recreate():
|
||||
script = Path("infra/docker/deploy-production.sh").read_text(encoding="utf-8")
|
||||
|
||||
assert "proxy_pass http://xiaoxia-api-production:8000/api/;" in config
|
||||
assert "client_max_body_size 100m;" in config
|
||||
assert "--force-recreate web" in script
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user