mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-20 07:28:06 -04:00
add haproxy config generator for proxying
This commit is contained in:
parent
33a6a9b8a2
commit
0d12e4d30a
4 changed files with 44 additions and 3 deletions
|
@ -24,6 +24,10 @@ class Node(Model):
|
|||
datetime_failed = DateTimeField(default=None, null=True)
|
||||
fail_reason = CharField(null=True)
|
||||
|
||||
def get_netloc(self):
|
||||
_url = urlparse(self.url)
|
||||
return _url.netloc
|
||||
|
||||
def get_failed_checks(self):
|
||||
hcs = HealthCheck.select().where(HealthCheck.node == self, HealthCheck.health == False)
|
||||
return hcs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue