From 885052deb61ec107a5c1f0a09a6de1157abb1cf1 Mon Sep 17 00:00:00 2001 From: iacore Date: Fri, 16 Dec 2022 19:16:22 +0000 Subject: [PATCH] Add iacore.conf --- iacore.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 iacore.conf diff --git a/iacore.conf b/iacore.conf new file mode 100644 index 0000000..481c372 --- /dev/null +++ b/iacore.conf @@ -0,0 +1,21 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + + location / { + return 301 https://$host$request_uri; + } +} + +server { + listen 443 ssl http2 default_server; + listen [::]:443 ssl http2 default_server; + server_name www.1a-insec.net iacore.exozy.me; + + root /srv/http/pages/iacore; + index index.html; + + location / { + try_files $uri $uri.html $uri/ =404; + } +}