1

我想为带有 pagekite 和 daphne 的网站运行 Python 后端。我使用以下命令:

daphne -b 0.0.0.0 -p 8000 main:app

和:

python3 pagekite.py 0.0.0.0:8000 https://something.pagekite.me

或者:

python3 pagekite.py 8000 https://something.pagekite.me

这是页面风筝:

>>> Hello! This is pagekite.py v1.5.2.201011.                   [CTRL+C = Stop]
    Built-in HTTPD is on localhost:35831, secret=CCV0mPEbKJ+ZGhi_7SQT+MYr      
    Connecting to front-end relay 139.162.152.224:443 ...                      
     - Relay supports 10 protocols on 19 public ports.                         
     - Raw TCP/IP (HTTP proxied) kites are available.                          
     - To enable more logging, add option: --logfile=/path/to/logfile          
    Abuse/DDOS protection: Relaying traffic for up to 5 clients per 10800s.    
    Quota: You have 20 days, 5.0 tunnels left.                                 
~<> Flying localhost:8000 as https://something.pagekite.me/                       
    93.153.49.187 < https://something.pagekite.me:443 (localhost:8000)            
 << pagekite.py [flying]   Kites are flying and all is well. 

在这两种情况下(我尝试了两个命令)我都超时了。我在 Linux Mint 20.2 上的 Chromium 和 Firefox 中进行了测试。互联网显然有效,因为我可以毫无问题地谷歌并输入这个。谢谢你的帮助!

4

0 回答 0