summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/templates
diff options
context:
space:
mode:
authorDiego Castro <spinolacastro@gmail.com>2015-08-12 11:16:12 -0300
committerDiego Castro <spinolacastro@gmail.com>2015-08-12 11:16:12 -0300
commit6a00818b03773feb76f5ec997431f975a517b69d (patch)
tree646051608fa32f7a93b884a950b8427b03471fb6 /roles/openshift_master/templates
parentbec613a2237df25164de03524414224779fcab4c (diff)
downloadopenshift-6a00818b03773feb76f5ec997431f975a517b69d.tar.gz
openshift-6a00818b03773feb76f5ec997431f975a517b69d.tar.bz2
openshift-6a00818b03773feb76f5ec997431f975a517b69d.tar.xz
openshift-6a00818b03773feb76f5ec997431f975a517b69d.zip
Fix Custom Cors
Diffstat (limited to 'roles/openshift_master/templates')
-rw-r--r--roles/openshift_master/templates/master.yaml.v1.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2
index 01c0ea7e4..c4d319c87 100644
--- a/roles/openshift_master/templates/master.yaml.v1.j2
+++ b/roles/openshift_master/templates/master.yaml.v1.j2
@@ -14,10 +14,12 @@ assetConfig:
maxRequestsInFlight: 0
requestTimeoutSeconds: 0
corsAllowedOrigins:
-{# TODO: add support for user specified corsAllowedOrigins #}
{% for origin in ['127.0.0.1', 'localhost', openshift.common.hostname, openshift.common.ip, openshift.common.public_hostname, openshift.common.public_ip] %}
- {{ origin }}
{% endfor %}
+{% for custom_origin in openshift.master.custom_cors_origins | default("") %}
+ - {{ custom_origin }}
+{% endfor %}
{% if openshift.master.embedded_dns | bool %}
dnsConfig:
bindAddress: {{ openshift.master.bind_addr }}:{{ openshift.master.dns_port }}