adding my data
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -67,11 +67,11 @@ http {
|
||||
server {
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name yourdomain.com www.yourdomain.com;
|
||||
server_name test.byte-mate.xyz;
|
||||
|
||||
# SSL Configuration
|
||||
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/test.byte-mate.xyz/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/test.byte-mate.xyz/privkey.pem;
|
||||
|
||||
# Modern SSL configuration
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
@@ -254,7 +254,7 @@ http {
|
||||
# HTTP to HTTPS redirect
|
||||
server {
|
||||
listen 80;
|
||||
server_name yourdomain.com www.yourdomain.com;
|
||||
server_name test.byte-mate.xyz;
|
||||
|
||||
# Allow Let's Encrypt challenges
|
||||
location /.well-known/acme-challenge/ {
|
||||
@@ -274,8 +274,8 @@ http {
|
||||
server_name _;
|
||||
|
||||
# Минимальная SSL конфигурация для блокировки HTTPS запросов
|
||||
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/test.byte-mate.xyz/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/test.byte-mate.xyz/privkey.pem;
|
||||
ssl_reject_handshake on;
|
||||
|
||||
# Возвращаем 444 (connection closed without response) для всех запросов
|
||||
|
||||
Reference in New Issue
Block a user