Commit 8fa82143 by Feanil Patel

Merge pull request #3025 from open-craft/jill/jenkins_master_protocol

Adds jenkins_protocol_https variable
parents 94f06024 a46bb8cb
...@@ -4,6 +4,7 @@ jenkins_group: "edx" ...@@ -4,6 +4,7 @@ jenkins_group: "edx"
jenkins_server_name: "jenkins.testeng.edx.org" jenkins_server_name: "jenkins.testeng.edx.org"
jenkins_port: 8080 jenkins_port: 8080
jenkins_nginx_port: 80 jenkins_nginx_port: 80
jenkins_protocol_https: true
jenkins_version: "1.638" jenkins_version: "1.638"
jenkins_deb_url: "http://pkg.jenkins-ci.org/debian/binary/jenkins_{{ jenkins_version }}_all.deb" jenkins_deb_url: "http://pkg.jenkins-ci.org/debian/binary/jenkins_{{ jenkins_version }}_all.deb"
......
...@@ -5,8 +5,10 @@ server { ...@@ -5,8 +5,10 @@ server {
location / { location / {
proxy_pass http://localhost:{{ jenkins_port }}; proxy_pass http://localhost:{{ jenkins_port }};
{% if jenkins_protocol_https %}
# Rewrite HTTPS requests from WAN to HTTP requests on LAN # Rewrite HTTPS requests from WAN to HTTP requests on LAN
proxy_redirect http:// https://; proxy_redirect http:// https://;
{% endif %}
# The following settings from https://wiki.jenkins-ci.org/display/JENKINS/Running+Hudson+behind+Nginx # The following settings from https://wiki.jenkins-ci.org/display/JENKINS/Running+Hudson+behind+Nginx
sendfile off; sendfile off;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment