Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
8fa82143
Commit
8fa82143
authored
Jun 08, 2016
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3025 from open-craft/jill/jenkins_master_protocol
Adds jenkins_protocol_https variable
parents
94f06024
a46bb8cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
playbooks/roles/jenkins_master/defaults/main.yml
+1
-0
playbooks/roles/jenkins_master/templates/etc/nginx/sites-available/jenkins.j2
+2
-0
No files found.
playbooks/roles/jenkins_master/defaults/main.yml
View file @
8fa82143
...
@@ -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"
...
...
playbooks/roles/jenkins_master/templates/etc/nginx/sites-available/jenkins.j2
View file @
8fa82143
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment