From f89dd5ff0d120b0de7091dc160df002c41d5007a Mon Sep 17 00:00:00 2001 From: packetcat Date: Mon, 18 Jul 2022 18:11:50 -0400 Subject: [PATCH] add vhost with redirect for sadiq.ae --- ubuntu/erlking.asininetech.net.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ubuntu/erlking.asininetech.net.yml b/ubuntu/erlking.asininetech.net.yml index b11bc77..0177b7d 100644 --- a/ubuntu/erlking.asininetech.net.yml +++ b/ubuntu/erlking.asininetech.net.yml @@ -124,6 +124,20 @@ - ssl_certificate "/etc/ssl/letsencrypt/sadiqsaif.com.crt" - ssl_certificate_key "/etc/ssl/letsencrypt/sadiqsaif.com.pem" - include snippets/sslstapling_hsts.conf + sadiq.ae.http: + - listen *:80 + - listen [::]:80 + - server_name sadiq.ae + - return 301 "https://sadiqsaif.com$request_uri" + sadiq.ae.https: + - listen *:443 ssl http2 + - listen [::]:443 ssl http2 + - server_name sadiq.ae + - access_log "/var/log/nginx/sadiq.ae.access.log" + - error_log "/var/log/nginx/sadiq.ae.error.log" + - ssl_certificate "/etc/ssl/letsencrypt/sadiq.ae.crt" + - ssl_certificate_key "/etc/ssl/letsencrypt/sadiq.ae.pem" + - return 301 "https://sadiq.ae$request_uri" ttrss.sadiqsaif.com.http: - listen *:80 - listen [::]:80