fixed the nginx config

This commit is contained in:
root 2025-01-12 14:44:01 +01:00
parent 7b54e09513
commit 16e988bd39

View file

@ -1,35 +1,13 @@
server {
######## TOR CHANGES ########
listen 4443;
listen [::]:4443;
server_name uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion;
add_header Onion-Location "http://uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion$request_uri" always;
######## TOR CHANGES ########
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name uptime.nowhere.moe;
########################################## HARDENING SSL #############################################
ssl_certificate /root/.acme.sh/uptime.nowhere.moe/fullchain.cer;
ssl_certificate_key /root/.acme.sh/uptime.nowhere.moe/uptime.nowhere.moe.key;
ssl_dhparam /root/.acme.sh/dhparam.pem;
# SSL Settings
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 on;
access_log off;
error_log off;
###################################END OF HARDENING SSL###########################################
root /srv/onion-uptime/www/;
root /srv/darknet-onion-webring/www/;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
}
index index.php;
}