Add sub_filter for app firmador v2
Showing
1 changed file
with
15 additions
and
6 deletions
| ... | @@ -40,15 +40,14 @@ | ... | @@ -40,15 +40,14 @@ |
| 40 | session_timeout: 10m | 40 | session_timeout: 10m |
| 41 | ssl_ciphers: PROFILE=SYSTEM | 41 | ssl_ciphers: PROFILE=SYSTEM |
| 42 | servers: | 42 | servers: |
| 43 | - core: | 43 | - log: |
| 44 | listen: | ||
| 45 | - port: 80 | ||
| 46 | http2: true | ||
| 47 | server_name: vueapp.test.vue.gov.py | ||
| 48 | log: | ||
| 49 | access: | 44 | access: |
| 50 | - path: /var/log/nginx/access.log | 45 | - path: /var/log/nginx/access.log |
| 51 | format: main | 46 | format: main |
| 47 | core: | ||
| 48 | listen: | ||
| 49 | - port: 80 | ||
| 50 | server_name: vueapp.test.vue.gov.py | ||
| 52 | locations: | 51 | locations: |
| 53 | - location: / | 52 | - location: / |
| 54 | proxy: | 53 | proxy: |
| ... | @@ -64,6 +63,7 @@ | ... | @@ -64,6 +63,7 @@ |
| 64 | - core: | 63 | - core: |
| 65 | listen: | 64 | listen: |
| 66 | - port: 443 | 65 | - port: 443 |
| 66 | http2: true | ||
| 67 | ssl: true | 67 | ssl: true |
| 68 | server_name: vueapp.test.vue.gov.py | 68 | server_name: vueapp.test.vue.gov.py |
| 69 | log: | 69 | log: |
| ... | @@ -77,6 +77,15 @@ | ... | @@ -77,6 +77,15 @@ |
| 77 | set_header: | 77 | set_header: |
| 78 | field: Host | 78 | field: Host |
| 79 | value: $host | 79 | value: $host |
| 80 | sub_filter: | ||
| 81 | sub_filters: | ||
| 82 | #This is necessary for vue_firmador_api.war, to allow local connections to websocket in 127.0.0.1 with only http | ||
| 83 | - string: localhost | ||
| 84 | replacement: 127.0.0.1 | ||
| 85 | once: false | ||
| 86 | types: | ||
| 87 | - text/css | ||
| 88 | - application/javascript | ||
| 80 | # custom_directives: | 89 | # custom_directives: |
| 81 | 90 | ||
| 82 | # - core: | 91 | # - core: | ... | ... |
-
Please register or sign in to post a comment