# Include INSIDE the existing component site's nginx server block. # The existing location / continues to proxy the component app on its usual port. location = /design-studio { return 308 /design-studio/; } location /design-studio/ { # Preserve the path and the external Host so same-origin validation works. proxy_pass http://127.0.0.1:4320; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_read_timeout 60s; client_max_body_size 2m; }