Merge pull request #38 from Jickelsen/masto-visibility-docker

Made mastodonVisibility available to be set through environment variables
This commit is contained in:
Linus Svensson
2023-10-13 11:07:22 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ services:
TWITTER_ACCESS_TOKEN_SECRET:
TWITTER_CROSSPOSTING:
MASTODON_CROSSPOSTING:
MASTODON_VISIBILITY:
LOGGING:
POST_DEFAULT:
MASTODON_LANG:
@@ -21,4 +22,4 @@ services:
RUN_INTERVAL:
POST_TIME_LIMIT:
volumes:
- ./dbhost:/db
- ./dbhost:/db

View File

@@ -8,10 +8,11 @@ TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
TWITTER_CROSSPOSTING=
MASTODON_CROSSPOSTING=
MASTODON_VISIBILITY=
LOGGING=
POST_DEFAULT=
MASTODON_LANG=
TWITTER_LANG=
MAX_RETRIES=
RUN_INTERVAL=
POST_TIME_LIMIT=
POST_TIME_LIMIT=

View File

@@ -41,3 +41,4 @@ mastodonLang = os.environ.get('MASTODON_LANG') if os.environ.get('MASTODON_LANG'
twitterLang = os.environ.get('TWITTER_LANG') if os.environ.get('TWITTER_LANG') else twitterLang
maxRetries = int(os.environ.get('MAX_RETRIES')) if os.environ.get('MAX_RETRIES') else maxRetries
postTimeLimit = int(os.environ.get('POST_TIME_LIMIT')) if os.environ.get('POST_TIME_LIMIT') else postTimeLimit
mastodonVisibility = os.environ.get('MASTODON_VISIBILITY') if os.environ.get('MASTODON_VISIBILITY') else mastodonVisibility