bifrost/playbooks/roles/bifrost-keystone-install/templates/nginx_conf.d_bifrost-keystone.conf.j2
Dmitry Tantsur ddafc94e30 TLS support for API services
Change-Id: I084da313eda17435c095ade7cb1b92981f5341dc
2020-09-02 18:23:40 +02:00

34 lines
934 B
Django/Jinja

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