f9557dbd by DevOps

Add necessary proxy headers with proxy_set_header

1 parent 325c3535
......@@ -48,13 +48,6 @@
listen:
- port: 80
server_name: vueapp.test.vue.gov.py
locations:
- location: /
proxy:
pass: http://jbosseap_test/
set_header:
field: Host
value: $host
#Configure this to redirect to HTTPS, as of 26-oct-22, it should only be available for test
rewrite:
return:
......@@ -77,13 +70,18 @@
proxy:
pass: http://jbosseap_test/
set_header:
field: Host
value: $host
#Equivalent to ProxyPreserveHost on from Apache HTTPd Server. It is necessary to work with RH SSO correctly
- field: Host
value: $host
- field: X-Forwarded-For
value: $remote_addr
- field: X-Forwarded-Proto
value: $scheme
sub_filter:
sub_filters:
#This is necessary for vue_firmador_api.war, to allow local connections to websocket in 127.0.0.1 with only http
- string: localhost
replacement: 127.0.0.1
- string: 'localhost'
replacement: '127.0.0.1'
once: false
types:
- text/css
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!