-
Notifications
You must be signed in to change notification settings - Fork 6
Disable logging by default #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,7 +153,7 @@ server { | |
| ## The time here is overridden by our injected `expires $cache_expiry` header. | ||
| proxy_cache_valid 200 206 1s; | ||
|
|
||
| access_log ${LOG_DIR}/cache.log proxy_cache; | ||
| ${CACHE_ACCESS_LOG_DIRECTIVE} | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -241,7 +241,7 @@ server { | |
| proxy_ssl_trusted_certificate ./cacert.pem; | ||
| proxy_ssl_server_name on; | ||
|
|
||
| access_log ${LOG_DIR}/range_cache.log range_cache; | ||
| ${RANGE_ACCESS_LOG_DIRECTIVE} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be Will be |
||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,8 +41,8 @@ http { | |
| # Logging Settings | ||
| ## | ||
|
|
||
| access_log ${LOG_DIR}/access.log; | ||
| error_log ${LOG_DIR}/error.log; | ||
| ${ACCESS_LOG_DIRECTIVE} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be Will be |
||
| error_log stderr ${ERROR_LOG_LEVEL}; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead log errors to stderr to be more compabitble with running in Docker.
|
||
|
|
||
| log_format proxy_cache '$remote_addr – $upstream_cache_status $status [$time_local] $request_method $proxy_method://$host$uri $body_bytes_sent "$http_referer" "$http_user_agent" '; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be
access_log ${LOG_DIR}/cache.log proxy_cache;whenENABLE_ACCESS_LOGS=true.Will be
access_log off;whenENABLE_ACCESS_LOGSis not set (default).