bifrost/playbooks/roles/ironic-install/templates/nginx.conf.j2
Chris Krelle 4cf1c66c1a Make nginx port configurable
This patch adds nginx_port var and uses it when setting up the nginx
service and for any reference to port 8080 when constructing links.
To change the port nginx uses pass --extra-vars "nginx_port=<port #>"

Change-Id: Ia06ef58544c3ef1308fcf42f1b9f0c168199f5f8
2015-06-05 10:37:13 -07:00

51 lines
738 B
Django/Jinja

user www-data;
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 {{nginx_port}};
server_name {{ ansible_hostname }};
root {{ http_boot_folder }};
location {{ http_boot_folder }}/ {
alias {{ http_boot_folder }}/;
}
}
}