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

# servers
#
{% for service in qtip_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 %}