Rename the variables for the two different types of Gotify key

This commit is contained in:
Scott Wallace 2020-10-26 11:40:26 +00:00
parent 7496d5505e
commit 6644a0b20e
3 changed files with 12 additions and 12 deletions

View file

@ -13,14 +13,14 @@ optional arguments:
-H, --healthcheck simply exit with 0 for healthy or 1 when unhealthy -H, --healthcheck simply exit with 0 for healthy or 1 when unhealthy
The following environment variables will override any config or default: The following environment variables will override any config or default:
* DELETE_ONRESOLVE (default: False) * DELETE_ONRESOLVE (default: False)
* DISABLE_RESOLVED (default: False) * DISABLE_RESOLVED (default: False)
* GOTIFY_CLIENT (default: None) * GOTIFY_KEY_APP (default: None)
* GOTIFY_KEY (default: None) * GOTIFY_KEY_CLIENT (default: None)
* GOTIFY_PORT (default: 80) * GOTIFY_PORT (default: 80)
* GOTIFY_SERVER (default: localhost) * GOTIFY_SERVER (default: localhost)
* LISTEN_PORT (default: 8080) * LISTEN_PORT (default: 8080)
* VERBOSE (default: 0) * VERBOSE (default: 0)
``` ```

View file

@ -25,8 +25,8 @@ class Alertify:
self.gotify = Gotify( self.gotify = Gotify(
self.config.gotify_server, self.config.gotify_server,
self.config.gotify_port, self.config.gotify_port,
self.config.gotify_key, self.config.gotify_key_app,
self.config.gotify_client, self.config.gotify_key_app,
) )
self.message_handler = MessageHandler( self.message_handler = MessageHandler(
self.gotify, self.gotify,

View file

@ -16,8 +16,8 @@ class Config:
delete_onresolve = bool(False) delete_onresolve = bool(False)
disable_resolved = bool(False) disable_resolved = bool(False)
gotify_client = str() gotify_key_app = str()
gotify_key = str() gotify_key_client = str()
gotify_port = int(80) gotify_port = int(80)
gotify_server = str('localhost') gotify_server = str('localhost')
listen_port = int(8080) listen_port = int(8080)