location /app/ {
# Disable request and response buffering
proxy_request_buffering off;
proxy_buffering off;
proxy_http_version 1.1;
# Add X-Forwarded-* headers
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Set the X-Forwarded-Base-Uri header to the public URI under which the app is accessible externally
proxy_set_header X-Forwarded-Base-Uri http://external.rampiva.com/app/;
proxy_set_header
X-Forwarded-Proto $scheme; # ToRemove enableapplication Filesubfolder Uploads,from set the client_max_body_size to the maximum file size that will be supported
client_max_body_size 1G;
proxied request
rewrite ^/app/?(.*) /$1 break;
# SetSend proxy_passrequestes to the internal appRampiva URI
proxy_pass http://10.0.0.1:81;
} |