mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Optimized healh checks
This commit is contained in:
@@ -21,8 +21,7 @@ def get_expected_statuses(domain: str, parts: list[str], redirected_domains: set
|
||||
return [301]
|
||||
if domain == '{{domains | get_domain('yourls')}}':
|
||||
return [403]
|
||||
# Default: Expect status code 200 or 302 for a domain
|
||||
return [200,302]
|
||||
return [200, 302, 301]
|
||||
|
||||
# file in which fqdn server configs are deposit
|
||||
config_path = '{{nginx.directories.http.servers}}'
|
||||
|
Reference in New Issue
Block a user