1ac51ddea7
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
15 lines
400 B
Django/Jinja
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;
|
|
}
|
|
}
|