Skip to content

Commit 2a74429

Browse files
committedDec 12, 2024
update domain for placeholder
1 parent 344bf0b commit 2a74429

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use in CLI:
1818
```shell
1919
cargo install localtunnel
2020

21-
localtunnel client --host https://init.so --subdomain kaichao --port 3000
21+
localtunnel client --host https://your-domain.com --subdomain kaichao --port 3000
2222
```
2323

2424
Use as a Rust library:
@@ -33,7 +33,7 @@ use localtunnel_client::{open_tunnel, broadcast, ClientConfig};
3333
let (notify_shutdown, _) = broadcast::channel(1);
3434

3535
let config = ClientConfig {
36-
server: Some("https://init.so".to_string()),
36+
server: Some("https://your-domain.com".to_string()),
3737
subdomain: Some("demo".to_string()),
3838
local_host: Some("localhost".to_string()),
3939
local_port: 3000,
@@ -52,7 +52,7 @@ let _ = notify_shutdown.send(());
5252
Use in CLI:
5353

5454
```shell
55-
localtunnel server --domain init.so --port 3000 --proxy-port 3001 --secure
55+
localtunnel server --domain your-domain.com --port 3000 --proxy-port 3001 --secure
5656
```
5757

5858
Use as a Rust library,
@@ -65,7 +65,7 @@ cargo install localtunnel-server
6565
use localtunnel_server::{start, ServerConfig};
6666

6767
let config = ServerConfig {
68-
domain: "init.so".to_string(),
68+
domain: "your-domain.com".to_string(),
6969
api_port: 3000,
7070
secure: true,
7171
max_sockets: 10,

‎client/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use tokio::net::TcpStream;
99
pub use tokio::sync::broadcast;
1010
use tokio::time::{sleep, Duration};
1111

12-
pub const PROXY_SERVER: &str = "https://init.so";
12+
pub const PROXY_SERVER: &str = "https://your-domain.com";
1313
pub const LOCAL_HOST: &str = "127.0.0.1";
1414

1515
// See https://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO to understand how keepalive work.

‎docs/proxy-service.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
## Configure Domain
44

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.
77

88
You can now login the server with SSH,
99

1010
```
11-
ssh ubuntu@proxy.init.so
11+
ssh ubuntu@proxy.your-domain.com
1212
```
1313

1414
## Install Rust and localtunnel
@@ -27,7 +27,7 @@ export CLOUDFLARE_NAMESPACE=xxx
2727
export CLOUDFLARE_AUTH_EMAIL=xxx
2828
export CLOUDFLARE_AUTH_KEY=xxx
2929

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
3131
```
3232

3333
*Known issues:*
@@ -54,7 +54,7 @@ Environment="CLOUDFLARE_AUTH_EMAIL=xxx"
5454
Environment="CLOUDFLARE_AUTH_KEY=xxx"
5555
Environment="RUST_LOG=debug"
5656
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
5858
Restart=always
5959
RestartSec=10
6060
@@ -92,14 +92,14 @@ touch Caddyfile
9292
```
9393

9494
```
95-
proxy.init.so {
95+
proxy.your-domain.com {
9696
reverse_proxy http://127.0.0.1:3000
9797
tls {
9898
on_demand
9999
}
100100
}
101101
102-
*.proxy.init.so {
102+
*.proxy.your-domain.com {
103103
reverse_proxy http://127.0.0.1:3001
104104
tls {
105105
on_demand

0 commit comments

Comments
 (0)