Skip to content

Commit

Permalink
proxy
Browse files Browse the repository at this point in the history
test
  • Loading branch information
wingeva1986 committed Oct 4, 2023
1 parent 37fa0d3 commit ceba77f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
COPY . .

RUN pip3 install -U -r requirements.txt
#CMD [ "python3", "mkyml.py" ]
CMD [ "python3", "bot.py" ]
CMD [ "python3", "mkyml.py" ]
#CMD [ "python3", "bot.py" ]


2 changes: 1 addition & 1 deletion mkyml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import yaml
import os
myyml = {'tg_bot_token': os.getenv('TG_BOT_TOKEN'),'tg_chat_id': os.getenv('TG_CHAT_ID'),'use_proxy':0,'use_proxy_dmm':0,'proxy_addr':'','tg_api_id':'','tg_api_hash':'','use_pikpak':0,'use_cache':'1','redis_host':os.getenv('REDIS_HOST'),'redis_port':35606}
myyml = {'tg_bot_token': os.getenv('TG_BOT_TOKEN'),'tg_chat_id': os.getenv('TG_CHAT_ID'),'use_proxy':1,'use_proxy_dmm':0,'proxy_addr':'http://163.53.18.119:80','tg_api_id':'','tg_api_hash':'','use_pikpak':0,'use_cache':'1','redis_host':os.getenv('REDIS_HOST'),'redis_port':35606}
with open("/root/.tg_search_bot/config.yaml", 'w') as f:
f.write(yaml.dump(myyml))

Expand Down

0 comments on commit ceba77f

Please sign in to comment.