File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff 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'] %}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments