From: nutra-bot Date: Mon, 22 Apr 2024 20:45:41 +0000 (+0000) Subject: https workaround (temp); sshd nonsense? X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=f2eb745e446fababe1863c810abb54e54cbc595b;p=nutratech%2Fvps-root.git https workaround (temp); sshd nonsense? --- diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index 4a54e79..0413edd 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -1,15 +1,15 @@ # Redirect all HTTP to HTTPS with no-WWW -server { - listen 80 default_server; - listen [::]:80 default_server; - server_name ~^(?:www\.)?(.*)$; - return 301 https://$1$request_uri; -} +#server { +# listen 80 default_server; +# listen [::]:80 default_server; +# server_name ~^(?:www\.)?(.*)$; +# return 301 https://$1$request_uri; +#} # API server { server_name api-dev.nutra.tk api.dev.nutra.tk; - #listen 80; + listen 80; listen 443 ssl http2; # HSTS add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;