~openstack-charmers/charms/trusty/glance-simplestreams-sync/next

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/templates/openstack_https_frontend

[freyes,r=billy-olsen]

Refactor config-changed hook to ensure that cron jobs are installed
properly.

Closes-Bug: #1434356

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% if endpoints -%}
2
 
{% for ext_port in ext_ports -%}
3
 
Listen {{ ext_port }}
4
 
{% endfor -%}
5
 
{% for address, endpoint, ext, int in endpoints -%}
6
 
<VirtualHost {{ address }}:{{ ext }}>
7
 
    ServerName {{ endpoint }}
8
 
    SSLEngine on
9
 
    SSLCertificateFile /etc/apache2/ssl/{{ namespace }}/cert_{{ endpoint }}
10
 
    SSLCertificateKeyFile /etc/apache2/ssl/{{ namespace }}/key_{{ endpoint }}
11
 
    ProxyPass / http://localhost:{{ int }}/
12
 
    ProxyPassReverse / http://localhost:{{ int }}/
13
 
    ProxyPreserveHost on
14
 
</VirtualHost>
15
 
{% endfor -%}
16
 
<Proxy *>
17
 
    Order deny,allow
18
 
    Allow from all
19
 
</Proxy>
20
 
<Location />
21
 
    Order allow,deny
22
 
    Allow from all
23
 
</Location>
24
 
{% endif -%}