From b2847ed8539d1db3a9fa7edf80e62654af663d51 Mon Sep 17 00:00:00 2001 From: Donovan Date: Sat, 26 Oct 2024 15:10:22 -0500 Subject: [PATCH] update nginx.config to app.nkode.tech --- nginx.config | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nginx.config b/nginx.config index c3588d1..68a81c6 100644 --- a/nginx.config +++ b/nginx.config @@ -1,23 +1,23 @@ -# Redirect all traffic from www.nkode.tech to nkode.tech +# Redirect all traffic from www.app.nkode.tech to app.nkode.tech server { listen 80; - server_name www.nkode.tech; + server_name www.app.nkode.tech; - return 301 https://nkode.tech$request_uri; + return 301 https://app.nkode.tech$request_uri; } -# Redirect HTTP to HTTPS for nkode.tech +# Redirect HTTP to HTTPS for app.nkode.tech server { listen 80; - server_name nkode.tech; + server_name app.nkode.tech; return 301 https://$host$request_uri; } -# Main server block for nkode.tech with SSL and content configuration +# Main server block for app.nkode.tech with SSL and content configuration server { listen 443 ssl http2; - server_name nkode.tech; + server_name app.nkode.tech; ssl_certificate /etc/letsencrypt/live/nkode.tech/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/nkode.tech/privkey.pem;