bifrost/playbooks/roles/bifrost-ironic-install/templates/nginx.conf.j2
Julia Kreger 9f5608fbad Rename of the nginx_port variable
The nginx_port variable is insufficiently generic enough in the event
a user really wanted to run Apache, or some other web server.

As such, this commit renames the setting to file_url_port to
prevent any confusion meanwhile supporting the ability to continue to
use an override setting should the variable nginx_port be defined in
an externally generated variable setting file.

Change-Id: Ida88cdec6ba162920df09dbdd335a9ad7868c842
2016-02-11 19:52:27 +00:00

51 lines
751 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 /var/log/nginx/access.log;
error_log /var/log/nginx/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 }}/;
}
}
}