Merge pull request #391 from NebulousLabs/pj/fix-server-name

Fix servername regex
This commit is contained in:
Karol Wypchło 2020-09-11 11:22:53 +02:00 committed by GitHub
commit a4ae722f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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