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
edx
configuration
Commits
b9d17441
Commit
b9d17441
authored
Jan 15, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nginx config for forum
parent
01ef8b59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
playbooks/edx-east/edx_provision.yml
+1
-0
playbooks/roles/nginx/templates/forum.j2
+33
-0
No files found.
playbooks/edx-east/edx_provision.yml
View file @
b9d17441
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
-
ora
-
ora
-
xqueue
-
xqueue
-
xserver
-
xserver
-
forum
nginx_default_sites
:
nginx_default_sites
:
-
lms
-
lms
# gh_users hash must be passed
# gh_users hash must be passed
...
...
playbooks/roles/nginx/templates/forum.j2
0 → 100644
View file @
b9d17441
{%- if "lms" in nginx_default_sites -%}
{%- set default_site = "default" -%}
{%- else -%}
{%- set default_site = "" -%}
{%- endif -%}
upstream forum_app_server {
server localhost:{{ FORUM_NGINX_PORT }} fail_timeout=0;
}
server {
server_name forum.*;
listen {{ FORUM_NGINX_PORT }} {{default_site}};
client_max_body_size 1M;
keepalive_timeout 5;
location / {
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://forum_app_server;
}
}
\ No newline at end of file
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