every user gets [a-z].user.vern.cc now
This commit is contained in:
parent
791953862e
commit
28736c4d2d
|
@ -126,7 +126,3 @@ location ~ ^/p/(?<user>[\w-]+).asc?$ {
|
|||
location ~ ^/p/(?<user>[\w-]+).gpg?$ {
|
||||
alias /sshfs/home/$user/.pgp.gpg;
|
||||
}
|
||||
#location /p/list {
|
||||
# default_type text/plain;
|
||||
# alias p/list;
|
||||
#}
|
||||
|
|
|
@ -27,3 +27,31 @@ server {
|
|||
server_name ~^0(?<user>[^.]+)\.vern\.cc;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ~^[a-z]-(?<user>[^.]+)\.vern\.cc;
|
||||
include snippets/lets-encrypt.conf;
|
||||
|
||||
include common/usersites-socket.conf;
|
||||
|
||||
error_page 502 =307 https://vern.cc;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
return 301 https://$host$request_uri;
|
||||
server_name ~^[a-z]-(?<user>[^.]+)\.vern\.cc;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name ~^[a-z]-(?<user>[^.]+)\.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad\.onion;
|
||||
|
||||
include common/usersites-socket.conf;
|
||||
|
||||
error_page 502 =307 http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue