Blame view

roles/runs_simple_load_balancer/templates/sites-enabled/webapp.j2 273 Bytes
4039e577   Lars Tiede   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  # {{ ansible_managed }}
  
  upstream demo_web_app {
      {% for app_host in app_hosts %}
      server {{ app_host }}:{{ app_port }};
      {% endfor %}
  }
  
  server {
      server_name {{ ansible_fqdn }};
      listen 80;
  
      location / {
          proxy_pass http://demo_web_app;
      }
  }