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
1f597c4c
Commit
1f597c4c
authored
Jun 01, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nginx configuration.
parent
d92ed523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
playbooks/roles/neo4j/templates/edx/app/nginx/sites-available/coursegraph.j2
+4
-22
No files found.
playbooks/roles/neo4j/templates/edx/app/nginx/sites-available/
neo4j
.j2
→
playbooks/roles/neo4j/templates/edx/app/nginx/sites-available/
coursegraph
.j2
View file @
1f597c4c
...
...
@@ -9,41 +9,23 @@
{% set default_site = "" %}
{% endif %}
# map $http_origin $cors_header {
# default "";
# '~*^({{ CREDENTIALS_CORS_WHITELIST|join('|')|replace('.', '\.') }})$' "$http_origin";
# }
server {
# server_name {{ neo4j_server_name }};
server_name localhost;
{% if NGINX_ENABLE_SSL %}
listen {{ CREDENTIALS_NGINX_PORT }} {{ default_site }};
listen {{ CREDENTIALS_SSL_NGINX_PORT }} ssl;
listen 443 ssl;
ssl_certificate /etc/ssl/certs/{{ NGINX_SSL_CERTIFICATE|basename }};
ssl_certificate_key /etc/ssl/private/{{ NGINX_SSL_KEY|basename }};
# request the browser to use SSL for all connections
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
{% else %}
# listen {{ neo4j_port }} {{ default_site }};
listen
7474
{{ default_site }};
# listen {{ neo4j_
http_
port }} {{ default_site }};
listen
80
{{ default_site }};
{% endif %}
# location ~ ^{{ CREDENTIALS_MEDIA_URL }}(?P<file>.*) {
# root {{ CREDENTIALS_MEDIA_ROOT }};
# try_files /$file =404;
# }
# location ~ ^{{ CREDENTIALS_STATIC_URL }}(?P<file>.*) {
# root {{ CREDENTIALS_STATIC_ROOT }};
# add_header Access-Control-Allow-Origin $cors_header always;
# add_header Cache-Control "max-age=31536000";
# try_files /$file =404;
# }
location / {
try_files $uri @proxy_to_app;
...
...
@@ -56,7 +38,7 @@ server {
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://127.0.0.1:747
4
;
proxy_pass http://127.0.0.1:747
3
;
}
# Forward to HTTPS if we're an HTTP request...
...
...
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