update nginx security params,

remove minecraft stream
This commit is contained in:
2025-08-12 00:15:28 +00:00
parent 80d1c79049
commit e4ccf355a2
3 changed files with 6 additions and 11 deletions

View File

@@ -6,7 +6,6 @@ events {
worker_connections 768; worker_connections 768;
} }
http { http {
server_tokens off;
sendfile on; sendfile on;
tcp_nopush on; tcp_nopush on;
types_hash_max_size 2048; types_hash_max_size 2048;

View File

@@ -1,15 +1,16 @@
server_tokens off;
ssl_protocols TLSv1.2 TLSv1.3; ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5; ssl_ciphers HIGH:!aNULL:!MD5:!EXP;
ssl_prefer_server_ciphers on;
ssl_ecdh_curve auto; ssl_ecdh_curve auto;
ssl_session_cache shared:SSL:50m; ssl_prefer_server_ciphers on;
ssl_session_tickets off;
ssl_session_timeout 1d; ssl_session_timeout 1d;
ssl_session_tickets off; ssl_session_cache shared:SSL:10m;
ssl_stapling on; ssl_stapling on;
ssl_stapling_verify on; ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s; resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s; resolver_timeout 5s;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
# ssl cert paths # ssl cert paths
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_certificate /etc/letsencrypt/live/tronnet.net/fullchain.pem; ssl_certificate /etc/letsencrypt/live/tronnet.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tronnet.net/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/tronnet.net/privkey.pem;

View File

@@ -1,5 +0,0 @@
server {
listen 25565 reuseport;
proxy_timeout 30s;
proxy_pass minecraft.root:25565;
}