example.env created
This commit is contained in:
@@ -6,12 +6,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /docker/data/deletedposts:/app/config
|
- /docker/data/deletedposts:/app/config
|
||||||
environment:
|
environment:
|
||||||
CLIENT_ID: "abc123"
|
CLIENT_ID: "${CLIENT_ID}"
|
||||||
CLIENT_SECRET: "secret"
|
CLIENT_SECRET: "${CLIENT_SECRET}"
|
||||||
USER_AGENT: "DeletedPostsBot/1.0"
|
USER_AGENT: "${USER_AGENT}"
|
||||||
USERNAME: "botuser"
|
USERNAME: "${USERNAME}"
|
||||||
PASSWORD: "botpass"
|
PASSWORD: "${PASSWORD}"
|
||||||
SUB_NAME: "my_subreddit"
|
SUB_NAME: "${SUB_NAME}"
|
||||||
MAX_DAYS: "90" # strings are converted to ints when the
|
MAX_DAYS: "${MAX_DAYS}" # strings are converted to ints when the
|
||||||
MAX_POSTS: "500" # corresponding config value is an int
|
MAX_POSTS: "${MAX_POSTS}" # corresponding config value is an int
|
||||||
SLEEP_MINUTES: "10"
|
SLEEP_MINUTES: "${SLEEP_MINUTES}"
|
||||||
|
|||||||
18
example.env
Normal file
18
example.env
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Example environment file for DeletedPosts bot
|
||||||
|
# Copy to .env or reference from docker-compose.yml using env_file
|
||||||
|
|
||||||
|
# Reddit API credentials
|
||||||
|
CLIENT_ID=your_client_id_here
|
||||||
|
CLIENT_SECRET=your_client_secret_here
|
||||||
|
USER_AGENT="DeletedPostsBot/1.0 by YourUsername"
|
||||||
|
USERNAME=bot_username
|
||||||
|
PASSWORD=bot_password
|
||||||
|
|
||||||
|
# Target subreddit
|
||||||
|
SUB_NAME=example_subreddit
|
||||||
|
|
||||||
|
# Behaviour settings (numbers)
|
||||||
|
MAX_DAYS=180
|
||||||
|
MAX_POSTS=180
|
||||||
|
SLEEP_MINUTES=5
|
||||||
|
|
||||||
Reference in New Issue
Block a user