diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-13 12:30:13 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-13 12:30:13 -0400 |
commit | e8f0d9464fce0a6759e968da0cdb84a48cd5416d (patch) | |
tree | 04c7574d0999d901942414b55124ce72dfb37518 /modules | |
parent | dd22179c25dbeed5a6a71ee97bcf2ac1b4aafea6 (diff) | |
download | puppet-tozt-e8f0d9464fce0a6759e968da0cdb84a48cd5416d.tar.gz puppet-tozt-e8f0d9464fce0a6759e968da0cdb84a48cd5416d.zip |
just always redirect http -> https
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tozt/files/nginx/doy.conf | 16 | ||||
-rw-r--r-- | modules/tozt/files/nginx/paste.conf | 8 |
2 files changed, 4 insertions, 20 deletions
diff --git a/modules/tozt/files/nginx/doy.conf b/modules/tozt/files/nginx/doy.conf index 19eaade..15c3932 100644 --- a/modules/tozt/files/nginx/doy.conf +++ b/modules/tozt/files/nginx/doy.conf @@ -2,19 +2,9 @@ server { listen 80 default; server_name tozt.net; - access_log /var/log/nginx/doy.access.log; - error_log /var/log/nginx/doy.error.log; + access_log /var/log/nginx/doy.access.log; + error_log /var/log/nginx/doy.error.log; - location / { - root /home/doy; - try_files /site$uri /site$uri/index.html /public_html$uri =404; - } - - location /recipes/ { - root /home/doy/public_html; - index index.html index.htm; - default_type text/plain; - autoindex on; - } + rewrite ^(.*) https://$host$1 permanent; } # vim:ft=nginx diff --git a/modules/tozt/files/nginx/paste.conf b/modules/tozt/files/nginx/paste.conf index 7305455..839fe78 100644 --- a/modules/tozt/files/nginx/paste.conf +++ b/modules/tozt/files/nginx/paste.conf @@ -5,12 +5,6 @@ server { access_log /var/log/nginx/paste.access.log; error_log /var/log/nginx/paste.error.log; - include /etc/nginx/mime.types.paste; - - root /home/doy/paste; - default_type text/plain; - gzip_types text/plain; - - location / { } + rewrite ^(.*) https://$host$1 permanent; } # vim:ft=nginx |