fuel-ccp-glance/service/files/nginx-registry.conf.j2

21 lines
757 B
Django/Jinja

server {
listen {{ network_topology["private"]["address"] }}:{{ glance.registry_port.cont }};
ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_cache shared:SSL:10m;
ssl_ciphers {{ nginx.ciphers }};
ssl_prefer_server_ciphers on;
ssl_certificate /opt/ccp/etc/tls/server-cert.pem;
ssl_certificate_key /opt/ccp/etc/tls/server-key.pem;
# allows to upload images without being cut off at some low size
client_max_body_size 0;
location / {
proxy_pass http://glance_registry;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}