bifrost/playbooks/roles/bifrost-keystone-install/templates/nginx_conf.d_bifrost-keystone.conf.j2
Dmitry Tantsur 42d281e771 Enable HTTP2 for Keystone when TLS is enabled
Because why not? We already do it for virtual media.

Change-Id: Ia41d3df788ba1e35be88643b6bb4297aa42bfd45
2021-12-03 18:01:04 +01:00

18 lines
495 B
Django/Jinja

# {{ ansible_managed }}
server {
{% if enable_tls | bool %}
listen 5000 ssl http2;
ssl_certificate {{ tls_certificate_path }};
ssl_certificate_key {{ nginx_private_key_path }};
{% else %}
listen 5000;
{% endif %}
access_log {{ nginx_log_dir }}/keystone/access.log;
error_log {{ nginx_log_dir }}/keystone/error.log;
location / {
uwsgi_pass unix:///run/uwsgi/keystone-public.socket;
include uwsgi_params;
uwsgi_param SCRIPT_NAME '';
}
}