summaryrefslogtreecommitdiffstats
path: root/modules/tozt/files/nginx/paste.conf
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-13 12:30:13 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-13 12:30:13 -0400
commite8f0d9464fce0a6759e968da0cdb84a48cd5416d (patch)
tree04c7574d0999d901942414b55124ce72dfb37518 /modules/tozt/files/nginx/paste.conf
parentdd22179c25dbeed5a6a71ee97bcf2ac1b4aafea6 (diff)
downloadpuppet-tozt-e8f0d9464fce0a6759e968da0cdb84a48cd5416d.tar.gz
puppet-tozt-e8f0d9464fce0a6759e968da0cdb84a48cd5416d.zip
just always redirect http -> https
Diffstat (limited to 'modules/tozt/files/nginx/paste.conf')
-rw-r--r--modules/tozt/files/nginx/paste.conf8
1 files changed, 1 insertions, 7 deletions
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