Merge pull request #391 from NebulousLabs/pj/fix-server-name
Fix servername regex
This commit is contained in:
commit
a4ae722f44
|
@ -22,7 +22,7 @@ server {
|
|||
listen [::]:80 default_server;
|
||||
|
||||
# parse subdomain (a base32 encoded Skylink) into custom variable
|
||||
server_name ~^([a-z0-9]{55}).*?;
|
||||
server_name "~^([a-z0-9]{55})\..*$";
|
||||
set $subdomain $1;
|
||||
|
||||
# ddos protection: closing slow connections
|
||||
|
|
Reference in New Issue