7b29f145e8
In some cases it is useful to be able to configure the directory into which log files are written by bifrost services. Of particular note is the kolla-ansible project which typically stores log files in a docker volume mapped to /var/log/kolla/ inside containers. Currently the bifrost_deploy container is unable to persist its logs for this reason. This change enables configuration of the log directory path for the following services: - ironic-api - ironic-conductor - ironic-inspector - nginx Change-Id: I452052fa2f9a55fac2f00b454a5ac70464c9d981 Closes-Bug: #1685871
52 lines
810 B
Django/Jinja
52 lines
810 B
Django/Jinja
user {{ nginx_user }};
|
|
worker_processes 2;
|
|
pid /run/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
# multi_accept on;
|
|
}
|
|
|
|
http {
|
|
|
|
##
|
|
# Basic Settings
|
|
##
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
# server_tokens off;
|
|
|
|
# server_names_hash_bucket_size 64;
|
|
# server_name_in_redirect off;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
##
|
|
# Logging Settings
|
|
##
|
|
|
|
access_log {{ nginx_log_dir }}/access.log;
|
|
error_log {{ nginx_log_dir }}/error.log;
|
|
|
|
##
|
|
# Gzip Settings
|
|
##
|
|
|
|
gzip on;
|
|
|
|
server {
|
|
listen {{ file_url_port }};
|
|
server_name {{ ansible_hostname }};
|
|
root {{ http_boot_folder }};
|
|
location {{ http_boot_folder }}/ {
|
|
alias {{ http_boot_folder }}/;
|
|
}
|
|
}
|
|
include /etc/nginx/conf.d/bifrost*.conf;
|
|
}
|