Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
nginx/cirandas.net: always redirect HTTP to HTTPS Fixes: https://todo.sr.ht/~porcellis/cirandas/15
nginx/http.d/cirandas.net.conf | 4 +++-
diff --git a/nginx/http.d/cirandas.net.conf b/nginx/http.d/cirandas.net.conf index d46203c49d6c7c1762c6e570cf20d0646c00fa5b..4f1603f10f51f3748d6c867a9aa39c034a3c65c3 100644 --- a/nginx/http.d/cirandas.net.conf +++ b/nginx/http.d/cirandas.net.conf @@ -8,7 +8,9 @@ location ^~ /.well-known { root /var/www; } - include conf.d/web.conf; + location / { + return 301 https://$server_name$request_uri; + } } server {