4d4c142b07
A previous patch provided debug logging support, including nginx.conf.j2, but failed to provide support to any nginx site templates. Change-Id: I7375fa52f2db847deee5c8181e47e68079714ab9
19 lines
811 B
Django/Jinja
19 lines
811 B
Django/Jinja
server {
|
|
listen {{ dashboard_port }} ssl;
|
|
ssl_certificate {{ tls_cert_path }};
|
|
ssl_certificate_key {{ tls_key_path }};
|
|
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 '';
|
|
uwsgi_pass unix://{{ snap_common }}/run/horizon.sock;
|
|
}
|
|
}
|