f9557dbd by DevOps

Add necessary proxy headers with proxy_set_header

1 parent 325c3535
...@@ -48,13 +48,6 @@ ...@@ -48,13 +48,6 @@
48 listen: 48 listen:
49 - port: 80 49 - port: 80
50 server_name: vueapp.test.vue.gov.py 50 server_name: vueapp.test.vue.gov.py
51 locations:
52 - location: /
53 proxy:
54 pass: http://jbosseap_test/
55 set_header:
56 field: Host
57 value: $host
58 #Configure this to redirect to HTTPS, as of 26-oct-22, it should only be available for test 51 #Configure this to redirect to HTTPS, as of 26-oct-22, it should only be available for test
59 rewrite: 52 rewrite:
60 return: 53 return:
...@@ -77,13 +70,18 @@ ...@@ -77,13 +70,18 @@
77 proxy: 70 proxy:
78 pass: http://jbosseap_test/ 71 pass: http://jbosseap_test/
79 set_header: 72 set_header:
80 field: Host 73 #Equivalent to ProxyPreserveHost on from Apache HTTPd Server. It is necessary to work with RH SSO correctly
74 - field: Host
81 value: $host 75 value: $host
76 - field: X-Forwarded-For
77 value: $remote_addr
78 - field: X-Forwarded-Proto
79 value: $scheme
82 sub_filter: 80 sub_filter:
83 sub_filters: 81 sub_filters:
84 #This is necessary for vue_firmador_api.war, to allow local connections to websocket in 127.0.0.1 with only http 82 #This is necessary for vue_firmador_api.war, to allow local connections to websocket in 127.0.0.1 with only http
85 - string: localhost 83 - string: 'localhost'
86 replacement: 127.0.0.1 84 replacement: '127.0.0.1'
87 once: false 85 once: false
88 types: 86 types:
89 - text/css 87 - 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!