This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:monobilisim/mono.sh
- Loading branch information
Showing
2 changed files
with
101 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,38 @@ | |
# Caddy LB-Policy Switcher configuration | ||
# | ||
|
||
# Send alarm | ||
SEND_ALARM=1 | ||
|
||
# Send bot alarm | ||
SEND_BOT_ALARM=0 | ||
|
||
|
||
# | ||
# Alarm Bot configuration | ||
# | ||
ALARM_BOT_API_URL=https://example.com | ||
[email protected] | ||
ALARM_BOT_API_KEY=testkey | ||
ALARM_BOT_USER_EMAILS=("[email protected]") | ||
|
||
# | ||
# Alarm Webhook URL | ||
# Format: url | ||
# Example: "https://zulip.example.com/api/v1/external/slack_incoming?api_key=example" | ||
ALARM_WEBHOOK_URL="" | ||
|
||
# Alarm Webhook URLs | ||
# Format: "url" | ||
# Example: "https://zulip.example.com/api/v1/external/slack_incoming?api_key=example" | ||
ALARM_WEBHOOK_URLS=() | ||
|
||
# Caddy API URLs | ||
# Format: "username:password@host:port" | ||
# Example: "testusername:testpassword@localhost:2019" | ||
# Format: "username:password@host:port;identifier" | ||
# Example: "testusername:testpassword@localhost:2019;identifier" | ||
CADDY_API_URLS=( | ||
"testusername:testpassword@localhost:2019" | ||
"testusername:testpassword@localhost:2019" | ||
"testusername:testpassword@localhost:2019;identifier1" | ||
"testusername:testpassword@localhost:2019;identifier2" | ||
) | ||
|
||
# Caddy server/vHost names | ||
|
@@ -36,18 +61,22 @@ CADDY_LB_URLS=( | |
"whoami.test2.com" | ||
) | ||
|
||
# Threshold to exit after a certain number of no changes. | ||
NO_CHANGES_EXIT_THRESHOLD=1 | ||
|
||
# Override config even if it is the same | ||
SERVER_OVERRIDE_CONFIG=1 | ||
SERVER_OVERRIDE_CONFIG=0 | ||
|
||
|
||
# Threshold to exit after a certain number of no changes. | ||
# Only matters if SERVER_OVERRIDE_CONFIG is set to 0 | ||
# Default: 3 | ||
SERVER_NOCHANGE_EXIT_THRESHOLD=1 | ||
|
||
# Loop order | ||
# SERVERS: Prioritize servers | ||
# API_URLS: Prioritize API URLs | ||
# Default: "API_URLS" | ||
LOOP_ORDER="API_URLS" | ||
|
||
# Disables dynamic API URLs | ||
# If set to 1, the script will not use the CADDY_LB_URLS to adjust the priority of the CADDY_API_URLS | ||
NO_DYNAMIC_API_URLS=0 | ||
# Enable/Disable dynamic API URLs | ||
# If set to 0, the script will not use the CADDY_LB_URLS to adjust the priority of the CADDY_API_URLS | ||
# Default: 1 | ||
DYNAMIC_API_URLS=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters