example.env created

This commit is contained in:
2026-02-24 22:03:33 +00:00
parent 36a4583d63
commit 86b2cb3605
2 changed files with 27 additions and 9 deletions

View File

@@ -6,12 +6,12 @@ services:
volumes:
- /docker/data/deletedposts:/app/config
environment:
CLIENT_ID: "abc123"
CLIENT_SECRET: "secret"
USER_AGENT: "DeletedPostsBot/1.0"
USERNAME: "botuser"
PASSWORD: "botpass"
SUB_NAME: "my_subreddit"
MAX_DAYS: "90" # strings are converted to ints when the
MAX_POSTS: "500" # corresponding config value is an int
SLEEP_MINUTES: "10"
CLIENT_ID: "${CLIENT_ID}"
CLIENT_SECRET: "${CLIENT_SECRET}"
USER_AGENT: "${USER_AGENT}"
USERNAME: "${USERNAME}"
PASSWORD: "${PASSWORD}"
SUB_NAME: "${SUB_NAME}"
MAX_DAYS: "${MAX_DAYS}" # strings are converted to ints when the
MAX_POSTS: "${MAX_POSTS}" # corresponding config value is an int
SLEEP_MINUTES: "${SLEEP_MINUTES}"

18
example.env Normal file
View 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