Commit 8b7d62b6 authored by godog's avatar godog

nginx: switch to certbot pem names

ai3/prod#31
parent 45a7b524
Pipeline #3273 passed with stage
in 5 minutes and 1 second
......@@ -23,8 +23,8 @@ server {
server_name _;
ssl on;
ssl_certificate /etc/credentials/selfsigned/default/cert.pem;
ssl_certificate_key /etc/credentials/selfsigned/default/private_key.pem;
ssl_certificate /etc/credentials/selfsigned/default/fullchain.pem;
ssl_certificate_key /etc/credentials/selfsigned/default/privkey.pem;
root /var/www/html;
index index.html;
......
......@@ -25,16 +25,16 @@
server {
listen [::]:443 http2;
{% if endpoint.domains %}
server_name {{ endpoint.domains | join(' ') }};
server_name {{ endpoint.domains | join(' ') }};
{% else %}
server_name {% for d in domain_public %}{% if shard %}{{ shard }}.{% endif %}{{ endpoint.name }}.{{ d }} {% endfor %}{% if shard %}{{ shard }}.{% endif %}{{ endpoint.name }}.{{ domain }};
{% endif %}
ssl on;
ssl_certificate /etc/credentials/public/{{ endpoint.name }}.{{ domain_public[0] }}/cert.pem;
ssl_certificate_key /etc/credentials/public/{{ endpoint.name }}.{{ domain_public[0] }}/private_key.pem;
ssl_certificate /etc/credentials/public/{{ endpoint.name }}.{{ domain_public[0] }}/fullchain.pem;
ssl_certificate_key /etc/credentials/public/{{ endpoint.name }}.{{ domain_public[0] }}/privkey.pem;
include /etc/nginx/snippets/site-limits.conf;
include /etc/nginx/snippets/site-limits.conf;
{#
When multiple locations are defined, we must make sure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment