From e1ff8be6f5e153d9686a8a212d968d691bc41c4c Mon Sep 17 00:00:00 2001 From: David Leutgeb Date: Thu, 17 Oct 2024 13:53:24 +0200 Subject: Add https_redirect --- https_redirect | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 https_redirect (limited to 'https_redirect') diff --git a/https_redirect b/https_redirect new file mode 100644 index 0000000..8a50c29 --- /dev/null +++ b/https_redirect @@ -0,0 +1,9 @@ +# default http -> https redirect + +server { + listen 80 default_server; + server_name _; + location / { + return 301 https://$host$request_uri; + } +} \ No newline at end of file -- cgit v1.2.3