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
417b859c
Commit
417b859c
authored
Dec 03, 2015
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ora nginx site
parent
059db560
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
46 deletions
+0
-46
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ora.j2
+0
-46
No files found.
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ora.j2
deleted
100644 → 0
View file @
059db560
upstream app_server {
{% for host in nginx_ora_gunicorn_hosts %}
server {{ host }}:{{ ora_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
listen {{ ORA_NGINX_PORT }} default_server;
location / {
{% include "basic-auth.j2" %}
try_files $uri @proxy_to_app;
}
# Check security on this
location /static/ {
alias /opt/wwc/staticfiles/;
# return a 403 for static files that shouldn't be
# in the staticfiles directory
location ~ ^/static/(.*)(\.xml|\.json|README.TXT) {
return 403;
}
# Set django-pipelined files to maximum cache time
location ~ /static/.*\.[0-9a-f]+\..* {
expires max;
}
# Expire other static files immediately (there should be very few / none of these)
expires epoch;
}
{% include "robots.j2" %}
location @proxy_to_app {
client_max_body_size 75K;
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://app_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