-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More configs for apprise and more #203
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,4 +186,4 @@ runbot.bat | |
/google_trends.dat | ||
/google_trends.dir | ||
/google_trends.bak | ||
/config.yaml | ||
/config-private.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# config-private.yaml | ||
apprise: | ||
urls: | ||
- "discord://{WebhookID}/{WebhookToken}" # Replace with your actual Apprise service URLs | ||
default_geolocation: US # Replace with your country code https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably safe to keep this in config.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# config.yaml | ||
apprise: | ||
summary: ON_ERROR | ||
notify: | ||
uncaught-exceptions: True # True or False | ||
incomplete-promotions: True # True or False | ||
retries: | ||
base_delay_in_seconds: 14.0625 # base_delay_in_seconds * 2^max = 14.0625 * 2^6 = 900 = 15 minutes | ||
max: 8 | ||
strategy: EXPONENTIAL | ||
logging: DEBUG # DEBUG or INFO |
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ def getCCodeLang(lang: str, geo: str) -> tuple: | |
try: | ||
nfo = ipapi.location() | ||
except RateLimited: | ||
geo = Utils.loadConfig().get("default_geolocation", "US").upper() | ||
geo = Utils.loadConfig("config-private.yaml").get("default_geolocation", "US").upper() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is explicitly set, I think we should prefer it to the location based on IP. |
||
logging.warning(f"Returning default geolocation {geo}", exc_info=True) | ||
return "en", geo | ||
if isinstance(nfo, dict): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be restored, not having it increases the chances someone accidentally commits secret information and from personal experience makes it harder to develop as a result.
It's a bit jarring for people to move things back from config-private.yaml to config.yaml again as well.