Fix servername regex

This commit is contained in:
PJ 2020-09-11 11:21:39 +02:00
parent 96aff33135
commit 41514c3660
No known key found for this signature in database
GPG Key ID: F345964979FA8971
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