Files
bifrost/playbooks/roles/bifrost-ironic-install/templates/nginx.conf.j2
Dmitry Tantsur 7445e6f701 Stop supporting storing introspection data in nginx
It allows anyone to store arbitrary files on the bifrost node without
authentication. The database storage should be used instead.

Change-Id: I91d77c9a31b8f0583511bb692bd2614533ff9147
2020-08-25 13:16:21 +02:00

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;
}