Pythonのscriptを入手して実行する.arm64(Raspberry Pi OS amd64でも)でも動作した.
$ curl -O https://pagekite.net/pk/pagekite.py $ chmod u+x ./pagekite.py $ mv ./pagekite.py ~/bin/ $ pagekite.py >>> Welcome to pagekite.py v1.5.2.200603! Basic usage, gives `http://localhost:80/` a public name: $ pagekite.py NAME.pagekite.me To expose specific folders, files or use alternate local ports: $ pagekite.py /a/path/ NAME.pagekite.me +indexes # built-in HTTPD $ pagekite.py *.html NAME.pagekite.me # built-in HTTPD $ pagekite.py 3000 NAME.pagekite.me # HTTPD on 3000 To expose multiple local servers (SSH and HTTP): $ pagekite.py ssh://NAME.pagekite.me AND 3000 NAME.pagekite.me To sign up with PageKite.net or get advanced instructions: $ pagekite.py --signup $ pagekite.py --help If you request a kite which does not exist in your configuration file, the program will offer to help you sign up with https://pagekite.net/ and create it. Pick a name, any name! ***
~/public_html/
をpagekiteのhttpdを利用して共有する. +indexes
でindexも付けられる.
$ pagekite.py ~/public_html/ matoken.pagekite.me $ pagekite.py ~/public_html/ matoken.pagekite.me +indexes
tcp80を共有する例
$ python pagekite.py 80 matoken.pagekite.me
設定ファイル等は ~/.pagekite.rc
に保存されている.
コメント