add pgp list and make index.php an option for index

This commit is contained in:
root 2022-11-03 08:17:04 -04:00
parent 91ead19609
commit 791953862e
1 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
add_header Onion-Location http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p$request_uri;
root /var/www/website;
index index.html;
index index.html index.php;
ssi on;
gzip on;
gzip_disable "msie6";
@ -118,3 +118,15 @@ location /status {
auth_basic "Administrator Login";
auth_basic_user_file /var/www/htpasswd;
}
location ~ ^/p/(?<user>[\w-]+).asc?$ {
alias /sshfs/home/$user/.pgp.asc;
default_type text/plain;
}
location ~ ^/p/(?<user>[\w-]+).gpg?$ {
alias /sshfs/home/$user/.pgp.gpg;
}
#location /p/list {
# default_type text/plain;
# alias p/list;
#}