Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metadata vhost for serving static metadata files generated elsewh…
…ere.
- Loading branch information
Showing
20 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
metadata_dir: "/opt/openconext/metadata/www" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dummy file to serve as endpoint for haproxy-healthchecks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: create metadata dir | ||
file: path={{ metadata_dir }} state=directory | ||
|
||
- name: copy dummy files | ||
copy: src=alive.txt dest={{ metadata_dir }} | ||
|
||
- name: copy apache config | ||
template: src=metadata.conf.j2 dest=/etc/httpd/conf.d/metadata.conf | ||
notify: reload httpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% if apache_app_listen_address.metadata is defined %} | ||
Listen {{ apache_app_listen_address.metadata }}:{{ loadbalancing.metadata.port }} | ||
<Virtualhost {{ apache_app_listen_address.metadata }}:{{ loadbalancing.metadata.port }}> | ||
{% else %} | ||
<Virtualhost *:443 > | ||
{% endif %} | ||
ServerName metadata.{{ base_domain }}:443 | ||
|
||
DocumentRoot {{ metadata_dir }} | ||
<Directory "{{ metadata_dir }}"> | ||
Require all granted | ||
</Directory> | ||
|
||
{% if apache_app_listen_address.all is defined %} | ||
SSLEngine on | ||
SSLCertificateFile {{ tls.cert_path }}/{{ tls_star_cert }} | ||
SSLCertificateKeyFile {{ tls.cert_private_path }}/{{ tls_star_cert_key }} | ||
SSLCertificateChainFile {{ tls.cert_path_ca }}/{{ tls_ca }} | ||
{% endif %} | ||
|
||
ErrorLog "|/usr/bin/logger -p local3.err -t 'Apache-METADATA'" | ||
CustomLog "|/usr/bin/logger -p local3.info -t 'Apache-METADATA'" combined | ||
|
||
{% if haproxy_backend_tls %} | ||
SSLEngine on | ||
SSLCertificateFile {{ tls.cert_path }}/backend.{{ base_domain }}.pem | ||
SSLCertificateKeyFile {{ tls.cert_private_path }}/backend.{{ base_domain }}.key | ||
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 | ||
SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256 | ||
SSLHonorCipherOrder on | ||
SSLCompression off | ||
{% endif %} | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters