mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
35 lines
1.5 KiB
Nginx Configuration File
35 lines
1.5 KiB
Nginx Configuration File
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/;
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
|
}
|
|
index index.php;
|
|
}
|