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
3d13639d
Commit
3d13639d
authored
Jan 15, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing ports.
parent
2c727a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
playbooks/roles/forum/defaults/main.yml
+4
-3
playbooks/roles/nginx/templates/forum.j2
+1
-1
No files found.
playbooks/roles/forum/defaults/main.yml
View file @
3d13639d
...
@@ -19,12 +19,11 @@ FORUM_MONGO_DATABASE: "cs_comments_service"
...
@@ -19,12 +19,11 @@ FORUM_MONGO_DATABASE: "cs_comments_service"
FORUM_MONGO_URL
:
"
mongodb://{{
FORUM_MONGO_USER
}}:{{
FORUM_MONGO_PASSWORD
}}@{{
FORUM_MONGO_HOST
}}:{{
FORUM_MONGO_PORT
}}/{{
FORUM_MONGO_DATABASE
}}"
FORUM_MONGO_URL
:
"
mongodb://{{
FORUM_MONGO_USER
}}:{{
FORUM_MONGO_PASSWORD
}}@{{
FORUM_MONGO_HOST
}}:{{
FORUM_MONGO_PORT
}}/{{
FORUM_MONGO_DATABASE
}}"
FORUM_SINATRA_ENV
:
"
development"
FORUM_SINATRA_ENV
:
"
development"
FORUM_RACK_ENV
:
"
development"
FORUM_RACK_ENV
:
"
development"
FORUM_NGINX_PORT
:
80
FORUM_NGINX_PORT
:
"
80"
FORUM_API_KEY
:
"
password"
FORUM_API_KEY
:
"
password"
FORUM_ELASTICSEARCH_HOST
:
"
localhost"
FORUM_ELASTICSEARCH_HOST
:
"
localhost"
FORUM_ELASTICSEARCH_PORT
:
"
9200"
FORUM_ELASTICSEARCH_PORT
:
"
9200"
FORUM_ELASTICSEARCH_URL
:
"
http://{{
FORUM_ELASTICSEARCH_HOST
}}:{{
FORUM_ELASTICSEARCH_PORT
}}"
FORUM_ELASTICSEARCH_URL
:
"
http://{{
FORUM_ELASTICSEARCH_HOST
}}:{{
FORUM_ELASTICSEARCH_PORT
}}"
FORUM_NGINX_PORT
:
80
forum_environment
:
forum_environment
:
RBENV_ROOT
:
"
{{
forum_rbenv_root
}}"
RBENV_ROOT
:
"
{{
forum_rbenv_root
}}"
...
@@ -42,6 +41,7 @@ forum_user: "forum"
...
@@ -42,6 +41,7 @@ forum_user: "forum"
forum_ruby_version
:
"
1.9.3-p448"
forum_ruby_version
:
"
1.9.3-p448"
forum_source_repo
:
"
https://github.com/edx/cs_comments_service.git"
forum_source_repo
:
"
https://github.com/edx/cs_comments_service.git"
forum_version
:
"
HEAD"
forum_version
:
"
HEAD"
forum_unicorn_port
:
"
4567"
#
#
# test config
# test config
...
@@ -52,6 +52,6 @@ forum_version: "HEAD"
...
@@ -52,6 +52,6 @@ forum_version: "HEAD"
# ports when the role has been successfully created.
# ports when the role has been successfully created.
#
#
forum_services
:
forum_services
:
-
{
service
:
"
sinatra"
,
host
:
"
localhost"
,
port
:
"
4567
"
}
-
{
service
:
"
sinatra"
,
host
:
"
localhost"
,
port
:
"
{{
forum_unicorn_port
}}
"
}
-
{
service
:
"
mongo"
,
host
:
"
{{
FORUM_MONGO_HOST
}}"
,
port
:
"
{{
FORUM_MONGO_PORT
}}"
}
-
{
service
:
"
mongo"
,
host
:
"
{{
FORUM_MONGO_HOST
}}"
,
port
:
"
{{
FORUM_MONGO_PORT
}}"
}
-
{
service
:
"
elasticsearch"
,
host
:
"
{{
FORUM_ELASTICSEARCH_HOST
}}"
,
port
:
"
{{
FORUM_ELASTICSEARCH_PORT
}}"
}
-
{
service
:
"
elasticsearch"
,
host
:
"
{{
FORUM_ELASTICSEARCH_HOST
}}"
,
port
:
"
{{
FORUM_ELASTICSEARCH_PORT
}}"
}
\ No newline at end of file
playbooks/roles/nginx/templates/forum.j2
View file @
3d13639d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
upstream forum_app_server {
upstream forum_app_server {
server localhost:{{
FORUM_NGINX_PORT
}} fail_timeout=0;
server localhost:{{
forum_unicorn_port
}} fail_timeout=0;
}
}
server {
server {
...
...
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