Add debug logging for various nginx sites
A previous patch provided debug logging support, including nginx.conf.j2, but failed to provide support to any nginx site templates. Change-Id: I7375fa52f2db847deee5c8181e47e68079714ab9
This commit is contained in:
parent
064aae8458
commit
4d4c142b07
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
include {{ snap }}/usr/conf/uwsgi_params;
|
||||
uwsgi_param SCRIPT_NAME '';
|
||||
|
@ -1,7 +1,11 @@
|
||||
server {
|
||||
listen 10002 ssl;
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
access_log syslog:server=unix:/dev/log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if is_clustered %}
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_tickets off;
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
# Disabled for glance image uploads. The maximum size will be
|
||||
# determined by glance settings.
|
||||
client_max_body_size 0;
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
include {{ snap }}/usr/conf/uwsgi_params;
|
||||
uwsgi_param SCRIPT_NAME '';
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
include {{ snap }}/usr/conf/uwsgi_params;
|
||||
uwsgi_param SCRIPT_NAME '';
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
|
@ -5,7 +5,11 @@ server {
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
access_log {{ snap_common }}/log/nginx-access.log;
|
||||
{% if logging_debug|lower == "true" %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log debug;
|
||||
{% else %}
|
||||
error_log {{ snap_common }}/log/nginx-error.log;
|
||||
{% endif %}
|
||||
location / {
|
||||
include {{ snap }}/usr/conf/uwsgi_params;
|
||||
uwsgi_param SCRIPT_NAME '';
|
||||
|
Loading…
Reference in New Issue
Block a user