announcements alias to /var/log

This commit is contained in:
root 2022-12-15 15:38:54 +00:00
parent 9e2aac48b9
commit 6c5f1187cb
1 changed files with 8 additions and 0 deletions

View File

@ -137,6 +137,14 @@ location ~ ^/p/(?<user>[\w-]+).asc?$ {
location ~ ^/p/(?<user>[\w-]+).gpg?$ {
alias /sshfs/home/$user/.pgp.gpg;
}
location ~ ^/en/announcements(.html)?$ {
default_type text/html;
alias /var/log/announcements.html;
}
location ~ ^/en/ssi_anno(.shtml)?$ {
default_type text/html;
alias /var/log/ssi_anno.shtml;
}
## users
location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
error_log /var/log/nginx/vern.cc-error.log crit;