1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Подключение убираем ssl сертификат

This commit is contained in:
MoonTestUse1
2024-12-26 03:10:13 +06:00
parent 1c593c5412
commit 15ebc663b7

View File

@@ -3,25 +3,9 @@ upstream backend_upstream {
}
server {
listen 80;
listen 80 default_server;
server_name itformhelp.ru www.itformhelp.ru;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name itformhelp.ru www.itformhelp.ru;
ssl_certificate /etc/letsencrypt/live/itformhelp.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/itformhelp.ru/privkey.pem;
root /usr/share/nginx/html;
index index.html;
@@ -29,16 +13,6 @@ server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# SSL configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=31536000" always;
# SPA routes
location / {
try_files $uri $uri/ /index.html;
@@ -63,5 +37,5 @@ server {
server {
listen 80;
server_name 185.139.70.62;
return 301 https://itformhelp.ru$request_uri;
return 301 http://itformhelp.ru$request_uri;
}