From aeb983cff0c86d531191c7c1a088d6286decac68 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 30 Dec 2022 04:03:03 -0300 Subject: [PATCH] asd --- nginx/sites-available/ayaya.beauty.conf | 27 ++++++++++++++++++++++- nginx/sites-available/i.ayaya.beauty.conf | 27 ++++++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/nginx/sites-available/ayaya.beauty.conf b/nginx/sites-available/ayaya.beauty.conf index 1e5c441..1f80d0e 100644 --- a/nginx/sites-available/ayaya.beauty.conf +++ b/nginx/sites-available/ayaya.beauty.conf @@ -1,6 +1,10 @@ server { - listen 80; + access_log /var/log/nginx/ayaya.beauty.log combined; + error_log /var/log/nginx/ayaya.beauty.error.log; + server_name ayaya.beauty; + include configs/general.conf; + include configs/securityheaders.conf; root /var/www/uguu/dist/public/; autoindex off; @@ -19,4 +23,25 @@ server { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } + + listen 443 http3; + listen 443 http2 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/ayaya.beauty/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/ayaya.beauty/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } + +server { + if ($host = ayaya.beauty) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + server_name ayaya.beauty; + return 404; # managed by Certbot + + + } diff --git a/nginx/sites-available/i.ayaya.beauty.conf b/nginx/sites-available/i.ayaya.beauty.conf index a0abe2b..4097cd8 100644 --- a/nginx/sites-available/i.ayaya.beauty.conf +++ b/nginx/sites-available/i.ayaya.beauty.conf @@ -1,9 +1,34 @@ server { - listen 80; + access_log /var/log/nginx/i.ayaya.beauty.log combined; + error_log /var/log/nginx/i.ayaya.beauty.error.log; + server_name i.ayaya.beauty; + include configs/general.conf; + include configs/securityheaders.conf; root /var/www/files/; autoindex off; access_log off; index index.html; + + listen 443 http3; + listen 443 http2 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/i.ayaya.beauty/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/i.ayaya.beauty/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } + +server { + if ($host = i.ayaya.beauty) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + server_name i.ayaya.beauty; + return 404; # managed by Certbot + + + }