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
ff6039cd
Commit
ff6039cd
authored
9 years ago
by
Bilal Ahmad
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2873 from edx/OPS-952
Adding support for multiple auth credentials for nginx (OPS-952)
parents
1a1172ff
0012d4c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
playbooks/roles/nginx/defaults/main.yml
+6
-0
playbooks/roles/nginx/tasks/main.yml
+4
-2
util/jenkins/ansible-provision.sh
+2
-0
No files found.
playbooks/roles/nginx/defaults/main.yml
View file @
ff6039cd
...
...
@@ -10,6 +10,12 @@ NGINX_EDXAPP_EXTRA_SITES: []
NGINX_EDXAPP_EXTRA_CONFIGS
:
[]
NGINX_EDXAPP_CUSTOM_REDIRECTS
:
{}
# Override these vars for adding user to nginx.htpasswd
NGINXUSERS
:
-
name
:
"
{{
COMMON_HTPASSWD_USER
}}"
password
:
"
{{
COMMON_HTPASSWD_PASS
}}"
state
:
present
NGINX_ENABLE_SSL
:
False
NGINX_REDIRECT_TO_HTTPS
:
False
# Set these to real paths on your
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/nginx/tasks/main.yml
View file @
ff6039cd
...
...
@@ -223,13 +223,15 @@
-
name
:
Write out htpasswd file
htpasswd
:
>
name={{ COMMON_HTPASSWD_USER }}
password={{ COMMON_HTPASSWD_PASS }}
name={{ item.name }}
password={{ item.password }}
state={{ item.state }}
path={{ nginx_htpasswd_file }}
when
:
COMMON_ENABLE_BASIC_AUTH
tags
:
-
install
-
install:configuration
with_items
:
NGINXUSERS
-
name
:
Create nginx log file location (just in case)
file
:
>
...
...
This diff is collapsed.
Click to expand it.
util/jenkins/ansible-provision.sh
View file @
ff6039cd
...
...
@@ -268,6 +268,8 @@ SANDBOX_USERNAME: $github_username
EDXAPP_ECOMMERCE_PUBLIC_URL_ROOT: "https://ecommerce-
${
deploy_host
}
"
EDXAPP_ECOMMERCE_API_URL: "https://ecommerce-
${
deploy_host
}
/api/v2"
NGINXUSERS:
$nginx_users
ECOMMERCE_ECOMMERCE_URL_ROOT: "https://ecommerce-
${
deploy_host
}
"
ECOMMERCE_LMS_URL_ROOT: "https://
${
deploy_host
}
"
ECOMMERCE_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
...
...
This diff is collapsed.
Click to expand it.
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