nginx-configs/common/librex.conf

22 lines
732 B
Plaintext

add_header Onion-Location http://lx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernziqfqvweijfaacmwazohgpdo2bt2ib2jlupt2pwwu27bhgxq.b32.i2p$request_uri;
root /var/www/librex;
index index.php index.html index.htm;
subs_filter_types text/html text/css text/xml;
subs_filter "{{main_url}}" $host;
location / {
subs_filter_types text/html text/css text/xml;
subs_filter "{{main_url}}" $host;
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;
}
if ($badagent) {
return 403;
}