注: 172.17.0.1 是 docker0 虚拟网卡的主机 ip,在 Windows 和 mac 下机制不同所以不适用。由于我的服务器是 linux 的,所以 PROXY_URI 的 ip 为 172.17.0.1。mac 的需要改为 host.docker.internal。其他的根据自己的需求进行调整。
services: rsshub: # two ways to enable puppeteer: # * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled # * (consumes more disk space and memory) leave everything unchanged image:diygod/rsshub restart:always ports: -'1200:1200' environment: NODE_ENV:production CACHE_TYPE:redis REDIS_URL:'redis://redis:6379/' PUPPETEER_WS_ENDPOINT:'ws://browserless:3000'# marked PROXY_URI:'http://172.17.0.1:7890' TWITTER_USERNAME:xxx TWITTER_PASSWORD:xxx depends_on: -redis -browserless# marked
rsstt: image:rongronggg9/rss-to-telegram:dev# stable image: rongronggg9/rss-to-telegram container_name:rsstt# need to be unique restart:unless-stopped volumes: -./config:/app/config environment: -TOKEN=xxx# get it from @BotFather -MANAGER=xxx# get it from @userinfobot, can be a list (e.g., 1234567890;987654321)
# ↓------ To disable sending via Telegraph, comment out this area ------↓ # # Get Telegraph API access tokens: https://api.telegra.ph/createAccount?short_name=RSStT&author_name=Generated%20by%20RSStT&author_url=https%3A%2F%2Fgithub.com%2FRongronggg9%2FRSS-to-Telegram-Bot # Refresh the page every time you get a new token. # If you have a lot of subscriptions, make sure to get at least 5 tokens. # ↓ Replace with your access tokens ↓ -TELEGRAPH_TOKEN= xxx xxx xxx xxx xxx # ↑------ To disable sending via Telegraph, comment out this area ------↑ #
# Please read https://github.com/Rongronggg9/RSS-to-Telegram-Bot/blob/master/docs/advanced-settings.md for more details. # ↓------ Advanced settings ------↓ # #- ERROR_LOGGING_CHAT=-1001234567890 # default: the first MANAGER #- MULTIUSER=0 # default: 1 #- CRON_SECOND=30 # 0-59, default: 0 #- DATABASE_URL=postgres://username:password@host:port/db_name # default: sqlite://path/to/config/db.sqlite3 #- API_ID=1025907 # get it from https://core.telegram.org/api/obtaining_api_id #- API_HASH=452b0359b988148995f22ff0f4229750 # get it from https://core.telegram.org/api/obtaining_api_id #- IMG_RELAY_SERVER=https://wsrv.nl/?url= # default: https://rsstt-img-relay.rongrong.workers.dev/ #- IMAGES_WESERV_NL=https://t0.nl/ # default: https://wsrv.nl/ #- USER_AGENT=Mozilla/5.0 (Android 12; Mobile; rv:68.0) Gecko/68.0 Firefox/96.0 # default: RSStT/2.2 RSS Reader #- IPV6_PRIOR=1 # default: 0 -T_PROXY=http://172.17.0.1:7890# Proxy used to connect to the Telegram API -R_PROXY=http://172.17.0.1:7890# Proxy used to fetch feeds #- PROXY_BYPASS_PRIVATE=1 # default: 0 #- PROXY_BYPASS_DOMAINS=example.com;example.net #- HTTP_TIMEOUT=30 # default: 12 #- HTTP_CONCURRENCY=0 # default: 1024 #- HTTP_CONCURRENCY_PER_HOST=0 # default: 16 #- TABLE_TO_IMAGE=1 # default: 0 #- TRAFFIC_SAVING=1 # default: 0 #- LAZY_MEDIA_VALIDATION=1 # default: 0 #- MANAGER_PRIVILEGED=1 # default: 0 #- NO_UVLOOP=1 # default: 0 #- MULTIPROCESSING=1 # default: 0 #- EXECUTOR_NICENESS_INCREMENT=5 # default: 2 #- DEBUG=1 # debug logging, default: 0 # ↑------ Advanced settings ------↑ #
services: rsshub: # two ways to enable puppeteer: # * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled # * (consumes more disk space and memory) leave everything unchanged image:diygod/rsshub restart:always ports: -'1200:1200' environment: NODE_ENV:production CACHE_TYPE:redis REDIS_URL:'redis://redis:6379/' PUPPETEER_WS_ENDPOINT:'ws://browserless:3000'# marked PROXY_URI:'http://host.docker.internal:7890' TWITTER_USERNAME:xxx TWITTER_PASSWORD:xx depends_on: -redis -browserless# marked
rsstt: image:rongronggg9/rss-to-telegram:dev# stable image: rongronggg9/rss-to-telegram container_name:rsstt# need to be unique restart:unless-stopped volumes: -./config:/app/config environment: -TOKEN=xxx# get it from @BotFather -MANAGER=xxx# get it from @userinfobot, can be a list (e.g., 1234567890;987654321)
# ↓------ To disable sending via Telegraph, comment out this area ------↓ # # Get Telegraph API access tokens: https://api.telegra.ph/createAccount?short_name=RSStT&author_name=Generated%20by%20RSStT&author_url=https%3A%2F%2Fgithub.com%2FRongronggg9%2FRSS-to-Telegram-Bot # Refresh the page every time you get a new token. # If you have a lot of subscriptions, make sure to get at least 5 tokens. # ↓ Replace with your access tokens ↓ -TELEGRAPH_TOKEN= xxx xxx xxx xxx xxx # ↑------ To disable sending via Telegraph, comment out this area ------↑ #
# Please read https://github.com/Rongronggg9/RSS-to-Telegram-Bot/blob/master/docs/advanced-settings.md for more details. # ↓------ Advanced settings ------↓ # #- ERROR_LOGGING_CHAT=-1001234567890 # default: the first MANAGER #- MULTIUSER=0 # default: 1 #- CRON_SECOND=30 # 0-59, default: 0 #- DATABASE_URL=postgres://username:password@host:port/db_name # default: sqlite://path/to/config/db.sqlite3 #- API_ID=1025907 # get it from https://core.telegram.org/api/obtaining_api_id #- API_HASH=452b0359b988148995f22ff0f4229750 # get it from https://core.telegram.org/api/obtaining_api_id #- IMG_RELAY_SERVER=https://wsrv.nl/?url= # default: https://rsstt-img-relay.rongrong.workers.dev/ #- IMAGES_WESERV_NL=https://t0.nl/ # default: https://wsrv.nl/ #- USER_AGENT=Mozilla/5.0 (Android 12; Mobile; rv:68.0) Gecko/68.0 Firefox/96.0 # default: RSStT/2.2 RSS Reader #- IPV6_PRIOR=1 # default: 0 -T_PROXY=http://host.docker.internal:7890# Proxy used to connect to the Telegram API -R_PROXY=http://host.docker.internal:7890# Proxy used to fetch feeds #- PROXY_BYPASS_PRIVATE=1 # default: 0 #- PROXY_BYPASS_DOMAINS=example.com;example.net #- HTTP_TIMEOUT=30 # default: 12 #- HTTP_CONCURRENCY=0 # default: 1024 #- HTTP_CONCURRENCY_PER_HOST=0 # default: 16 #- TABLE_TO_IMAGE=1 # default: 0 #- TRAFFIC_SAVING=1 # default: 0 #- LAZY_MEDIA_VALIDATION=1 # default: 0 #- MANAGER_PRIVILEGED=1 # default: 0 #- NO_UVLOOP=1 # default: 0 #- MULTIPROCESSING=1 # default: 0 #- EXECUTOR_NICENESS_INCREMENT=5 # default: 2 #- DEBUG=1 # debug logging, default: 0 # ↑------ Advanced settings ------↑ #