2
2
3
3
## Configure Domain
4
4
5
- Add A record ` *.proxy.init.so ` , the value is server IP.
6
- Add A record ` proxy.init.so ` , the value is server IP.
5
+ Add A record ` *.proxy.your-domain.com ` , the value is server IP.
6
+ Add A record ` proxy.your-domain.com ` , the value is server IP.
7
7
8
8
You can now login the server with SSH,
9
9
10
10
```
11
- ssh ubuntu@proxy.init.so
11
+ ssh ubuntu@proxy.your-domain.com
12
12
```
13
13
14
14
## Install Rust and localtunnel
@@ -27,7 +27,7 @@ export CLOUDFLARE_NAMESPACE=xxx
27
27
export CLOUDFLARE_AUTH_EMAIL=xxx
28
28
export CLOUDFLARE_AUTH_KEY=xxx
29
29
30
- localtunnel server --domain proxy.init.so --port 3000 --proxy-port 3001 --secure --require-auth
30
+ localtunnel server --domain proxy.your-domain.com --port 3000 --proxy-port 3001 --secure --require-auth
31
31
```
32
32
33
33
* Known issues:*
@@ -54,7 +54,7 @@ Environment="CLOUDFLARE_AUTH_EMAIL=xxx"
54
54
Environment="CLOUDFLARE_AUTH_KEY=xxx"
55
55
Environment="RUST_LOG=debug"
56
56
Environment="RUST_BACKTRACE=1"
57
- ExecStart=/root/.cargo/bin/localtunnel server --domain proxy.init.so --port 3000 --proxy-port 3001 --secure --require-auth
57
+ ExecStart=/root/.cargo/bin/localtunnel server --domain proxy.your-domain.com --port 3000 --proxy-port 3001 --secure --require-auth
58
58
Restart=always
59
59
RestartSec=10
60
60
@@ -92,14 +92,14 @@ touch Caddyfile
92
92
```
93
93
94
94
```
95
- proxy.init.so {
95
+ proxy.your-domain.com {
96
96
reverse_proxy http://127.0.0.1:3000
97
97
tls {
98
98
on_demand
99
99
}
100
100
}
101
101
102
- *.proxy.init.so {
102
+ *.proxy.your-domain.com {
103
103
reverse_proxy http://127.0.0.1:3001
104
104
tls {
105
105
on_demand
0 commit comments