Skip to content

Instantly share code, notes, and snippets.

@sebfoucault
Last active February 21, 2017 17:46
Show Gist options
  • Save sebfoucault/fa01812008b92218e768b59a95bcbfdf to your computer and use it in GitHub Desktop.
Save sebfoucault/fa01812008b92218e768b59a95bcbfdf to your computer and use it in GitHub Desktop.
#
# Configuration for reverse-proxification
#
location ~ /micropa-web/(?<tenant>.*)/odata/(?<rest>.*) {
proxy_pass http://127.0.0.1:8080/micropa-web/odata/$rest/;
proxy_set_header Host $host;
proxy_set_header X-TENANT-ID $tenant;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment