nginx-configs/common/privatebin.conf

20 lines
570 B
Plaintext
Raw Permalink Normal View History

2022-07-25 10:55:46 +00:00
add_header Onion-Location http://pb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
2022-10-21 20:40:01 +00:00
add_header X-I2P-Location http://vernmeoccnhag24lturrfxjne2szacraslpbg3v4pmuv25gwb5oq.b32.i2p$request_uri;
2022-07-25 10:55:46 +00:00
root /var/www/privatebin;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
2022-12-21 11:20:28 +00:00
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
2022-07-25 10:55:46 +00:00
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;
2022-07-25 10:55:46 +00:00
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}