mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
chore: strip compose comments, document env vars in README
compose files now carry a single comment: the commented ACME_HOST line (uncomment to enable domain cert issuance). Everything else moved to the README env table and the deployment sections, which explain ACME_HOST, DEFAULT_HOST and every other variable.
This commit is contained in:
@@ -5,9 +5,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- '80:80'
|
||||||
- '443:443'
|
- '443:443'
|
||||||
# Bare-IP access only. Uncomment to enable.
|
|
||||||
# environment:
|
|
||||||
# DEFAULT_HOST: 'bot.example.com'
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./nginx-certs:/etc/nginx/certs:ro
|
- ./nginx-certs:/etc/nginx/certs:ro
|
||||||
@@ -42,18 +39,12 @@ services:
|
|||||||
TELOXIDE_TOKEN: ''
|
TELOXIDE_TOKEN: ''
|
||||||
BOT_ADMIN: ''
|
BOT_ADMIN: ''
|
||||||
PIXIV_REFRESH_TOKEN: ''
|
PIXIV_REFRESH_TOKEN: ''
|
||||||
# Optional: x.com session cookie (auth_token) — fetches NSFW tweets
|
|
||||||
# that the public syndication endpoint withholds.
|
|
||||||
TWITTER_AUTH_TOKEN: ''
|
TWITTER_AUTH_TOKEN: ''
|
||||||
EDIT_MESSAGE_TTL_SECONDS: '86400'
|
EDIT_MESSAGE_TTL_SECONDS: '86400'
|
||||||
# Link-result cache TTL (default 604800 = 7 days).
|
|
||||||
LINK_CACHE_TTL_SECONDS: '604800'
|
LINK_CACHE_TTL_SECONDS: '604800'
|
||||||
RUST_LOG: 'info'
|
RUST_LOG: 'info'
|
||||||
# 域名部署:替换为你的域名;纯 IP 部署:替换为服务器公网 IP(需按
|
|
||||||
# README「只有 IP」一节签发 acme IP 证书)。
|
|
||||||
VIRTUAL_HOST: '<YOUR_DOMAIN>'
|
VIRTUAL_HOST: '<YOUR_DOMAIN>'
|
||||||
VIRTUAL_PORT: '8443'
|
VIRTUAL_PORT: '8443'
|
||||||
# 域名部署:取消注释并设为域名,由 acme-companion 自动签发/续期证书。
|
|
||||||
# ACME_HOST: 'your.domain.com'
|
# ACME_HOST: 'your.domain.com'
|
||||||
WEBHOOK: 'true'
|
WEBHOOK: 'true'
|
||||||
WEBHOOK_LISTEN: '0.0.0.0'
|
WEBHOOK_LISTEN: '0.0.0.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user