36 lines
932 B
Plaintext
36 lines
932 B
Plaintext
add_header Onion-Location http://ll.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
|
add_header X-I2P-Location http://vernhaphwpz47ngjmxqp7sq777terkkuadaor6oe65urxsy3e65a.b32.i2p$request_uri;
|
|
add_header X-Frame-Options "SAMEORIGIN";
|
|
add_header X-Content-Type-Options "nosniff";
|
|
root /var/www/littlelink-custom;
|
|
index index.php;
|
|
|
|
charset utf-8;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
location = /robots.txt { access_log off; log_not_found off; }
|
|
|
|
error_page 404 /index.php;
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
include snippets/fastcgi.conf;
|
|
}
|
|
|
|
location ~ ^\. { deny all; }
|
|
|
|
location ~ \.sqlite$ { deny all; }
|
|
|
|
location ~ \.env$ { deny all; }
|
|
|
|
location ~ /\.htaccess { allow all; }
|
|
|
|
if ($badagent) {
|
|
return 403;
|
|
}
|