hsync 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +24 -0
- package/config.js +1 -1
- package/dev_dynamic.sh +7 -0
- package/dev_stripe_hook.sh +8 -0
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -6,3 +6,27 @@ Client for the ([hsync-server](https://github.com/monteslu/hsync-server)).
|
|
|
6
6
|
Share your local webserver as a secure public URL, and more.
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## basic usage
|
|
10
|
+
|
|
11
|
+
clone repo
|
|
12
|
+
`npm i`
|
|
13
|
+
|
|
14
|
+
set enviroment:
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### hsync server URL
|
|
18
|
+
`export HSYNC_SERVER="wss://myhost.myserver.com"`
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### secret for your hsync client
|
|
22
|
+
`export HSYNC_SECRET="*****************"`
|
|
23
|
+
|
|
24
|
+
### local webserver port
|
|
25
|
+
`export PORT="8080"`
|
|
26
|
+
|
|
27
|
+
### run
|
|
28
|
+
`node index`
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
package/config.js
CHANGED
|
@@ -20,7 +20,7 @@ keys.forEach((k) => {
|
|
|
20
20
|
hsyncServer: value,
|
|
21
21
|
hsyncSecret: process.env['HSYNC_SECRET_' + name] || baseConfig.hsyncSecret,
|
|
22
22
|
localHost: process.env['LOCAL_HOST_' + name] || baseConfig.localHost,
|
|
23
|
-
port: process.env['
|
|
23
|
+
port: process.env['PORT_' + name] || baseConfig.port,
|
|
24
24
|
hsyncBase: process.env['HSYNC_BASE_' + name] || baseConfig.hsyncBase,
|
|
25
25
|
keepalive: parseInt(process.env['HSYNC_KEEP_ALIVE_' + name]) || baseConfig.keepalive,
|
|
26
26
|
})
|
package/dev_dynamic.sh
ADDED