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
425c8a2d
Commit
425c8a2d
authored
Sep 03, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cms/lms log format.
parent
37a82f8d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
playbooks/roles/nginx/defaults/main.yml
+1
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
+1
-1
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+1
-1
playbooks/roles/nginx/templates/etc/nginx/nginx.conf.j2
+1
-1
No files found.
playbooks/roles/nginx/defaults/main.yml
View file @
425c8a2d
...
...
@@ -23,6 +23,7 @@ NGINX_ENABLE_SSL: False
NGINX_SSL_CERTIFICATE
:
'
ssl-cert-snakeoil.pem'
NGINX_SSL_KEY
:
'
ssl-cert-snakeoil.key'
NGINX_LOG_FORMAT_NAME
:
'
p_combined'
# When set to False, nginx will pass X-Forwarded-For, X-Forwarded-Port,
# and X-Forwarded-Proto headers through to the backend unmodified.
# This is desired when nginx is deployed behind another load balancer
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
View file @
425c8a2d
...
...
@@ -29,7 +29,7 @@ server {
server_name {{ CMS_HOSTNAME }};
access_log {{ nginx_log_dir }}/access.log;
access_log {{ nginx_log_dir }}/access.log
{{ NGINX_LOG_FORMAT_NAME }}
;
error_log {{ nginx_log_dir }}/error.log error;
# CS184 requires uploads of up to 4MB for submitting screenshots.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
425c8a2d
...
...
@@ -27,7 +27,7 @@ server {
listen {{EDXAPP_LMS_NGINX_PORT}} {{default_site}};
{% endif %}
access_log {{ nginx_log_dir }}/access.log;
access_log {{ nginx_log_dir }}/access.log
{{ NGINX_LOG_FORMAT_NAME }}
;
error_log {{ nginx_log_dir }}/error.log error;
# CS184 requires uploads of up to 4MB for submitting screenshots.
...
...
playbooks/roles/nginx/templates/etc/nginx/nginx.conf.j2
View file @
425c8a2d
...
...
@@ -33,7 +33,7 @@ http {
# Logging Settings
##
log_format
p_combined
'$http_x_forwarded_for - $remote_addr - $remote_user [$time_local] '
log_format
{{ NGINX_LOG_FORMAT_NAME }}
'$http_x_forwarded_for - $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent $request_time '
'"$http_referer" "$http_user_agent"';
...
...
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