Skip to content

Commit 3582ef1

Browse files
committed
start using the new certs, directly from le path
1 parent e4d6be5 commit 3582ef1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

salt/roots/pythonexpress/pythonexpress.org.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ server {
2121
return 200 "User-agent: * Disallow:";
2222
}
2323

24-
# {% if not ssl['on'] %}
25-
# include /etc/nginx/sites-available/pythonexpress.org/*.conf;
26-
# {% else %}
27-
# location / {
28-
# rewrite ^/(.*) https://pythonexpress.org/$1 permanent;
29-
# }
30-
# {% endif %}
24+
{% if not ssl['on'] %}
25+
include /etc/nginx/sites-available/pythonexpress.org/*.conf;
26+
{% else %}
27+
location / {
28+
rewrite ^/(.*) https://pythonexpress.org/$1 permanent;
29+
}
30+
{% endif %}
3131
}
3232

3333
{% if ssl['on'] %}

salt/roots/pythonexpress/pythonexpress.org.with_ssl.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ if ($scheme = http) {
1010
rewrite ^(.*) https://$server_name$1 permanent;
1111
}
1212

13-
ssl_certificate /etc/ssl/pythonexpress.org.crt;
14-
ssl_certificate_key /etc/ssl/pythonexpress.org.key;
13+
ssl_certificate /etc/letsencrypt/live/pythonexpress.org/fullchain.pem;
14+
ssl_certificate_key /etc/letsencrypt/live/pythonexpress.org/privkey.pem;
1515

1616
# Recomended settings form
1717
# https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html

0 commit comments

Comments
 (0)