openstack-ansible-repo_server/templates/openstack-slushee.vhost.j2
Dmitriy Rabotyagov 1ac51ddea7 Bind services to mgmt network addresses
These addresses are given defaults of 0.0.0.0 in the role defaults
but in a deployment we know which address each service should bind to.

The variable repo_server_bind_address should hold the mgmt network IP
address for either containerised or metal deployments and drives the
bind addresses where necessary.

Co-Authored-By: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
Change-Id: Iff95282b91a94d22fc8f6cdbadefacb53cae5b79
2020-06-04 06:55:14 +00:00

15 lines
400 B
Django/Jinja

server {
listen {{ repo_server_bind_address }}:{{ repo_server_port }};
server_name {{ repo_server_name }};
# Logging
access_log /var/log/nginx/{{ repo_server_name }}.access.log gzip buffer=32k;
error_log /var/log/nginx/{{ repo_server_name }}.error.log notice;
location / {
root {{ repo_service_home_folder }}/repo/;
autoindex on;
expires 5h;
}
}