Browse Source

Update 'README.md'

天问 6 months ago
parent
commit
f1d9d24692
1 changed files with 19 additions and 4 deletions
  1. 19 4
      README.md

+ 19 - 4
README.md

@@ -4,12 +4,27 @@ ngrok php实现
 
 ## Usage
 
-安装
+安装:
+
+注意依赖php环境:
 ```
-docker run expose share http://192.168.2.100 # share a local site
-docker run expose serve my-domain.com # start a server
+curl https://github.com/beyondcode/expose/raw/master/builds/expose -L --output expose
+chmod +x expose
+./expose
 
-expose share http://localhost:3000
+```
 
+docker方式:
 ```
+git clone https://github.com/beyondcode/expose
+cd expose
+docker build -t jianboy/expose .
+
+docker run jianboy/expose share http://192.168.2.100 --auth="admin:xxx"  # share a local site
+docker run jianboy/expose serve my-domain.com # start a server
 
+expose share http://localhost:3000
+expose share-port 2525
+
+```
+运行docker需要token