config after DDoS

This commit is contained in:
2024-06-05 20:21:19 +00:00
parent ab6b18cfb9
commit ced4c776e9
5 changed files with 18 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server;
listen [::]:443 default_server;
# ssl_reject_handshake on;
ssl_certificate /etc/ssl/null.crt;
ssl_certificate_key /etc/ssl/null.key;
server_name "";
return 444;
}

View File

@@ -1,9 +1,9 @@
server {
listen 443 ssl default_server; # managed by Certbot
listen 443 ssl; # managed by Certbot
server_name skazochnik.spb.ru gipat;
location / {
proxy_pass http://gipat:5002/;
sub_filter "http://gipat:5002/" "https://skazochnik.spb.ru/";
sub_filter "http://gipat:5002/" "https://skazochnik.spb.ru/";
client_max_body_size 0;
}