summaryrefslogtreecommitdiffstats
path: root/opt/servers/roles/ngnix/templates/testapi.conf.j2
blob: 6a4d388b489d0177e087871a6e8d09059e945e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# {{ ansible_managed }}

# servers
#
{% for service in testapi_services %}
server {
  listen 80;
  listen 443 ssl;
  server_name {{ service.name }}.qtip.openzero.net;
  location / {
    proxy_pass {{ service.upstream }};
    sub_filter {{ service.upstream }}  'http://{{ service.name }}.qtip.openzero.net';
    sub_filter_once off;
    sub_filter_types text/html application/json;
  }
}
{% endfor %}