mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-02 00:20:35 +02:00
Changed yourls to yourls and additional optimations
This commit is contained in:
@@ -19,7 +19,7 @@ def get_expected_statuses(domain: str, parts: list[str], redirected_domains: set
|
||||
return [404]
|
||||
if (parts and parts[0] == 'www') or (domain in redirected_domains):
|
||||
return [301]
|
||||
if domain == '{{domains | get_domain('yourls')}}':
|
||||
if domain == '{{domains | get_domain('web-app-yourls')}}':
|
||||
return [403]
|
||||
return [200, 302, 301]
|
||||
|
||||
|
Reference in New Issue
Block a user