chanika on Nostr: มาทำ home server ด้วย cloudflare tunnel ...
มาทำ home server ด้วย cloudflare tunnel ไม่ว่าจะทำ btc node, relays, home storage, หรือระบบสากะเบือ เรือรบ ก็ทำไปเถอะ
อยากจะบอกว่าของเขาดีจริงๆ ได้ทั้ง ddns และ private server เลยเจ้าค่า
#siamstr #saimstr
Start tunnel Cloudflare
1 create tunnel
cloudflared tunnel create <your-name>
2 modify config.yml in dir .cloudflared
tunnel: <Tunnel-UUID>
credentials-file: <.cloudflared/<Tunnel-UUID>.json>
ingress:
- hostname: <domainname.com>
service:
http://localhost:8080 - service: http_status:404
3 test config.yml is working
cloudflared tunnel ingress validate
4 create routing traffic
* Now assign a CNAME record that points traffic to your tunnel subdomain:
cloudflared tunnel route dns <UUID or NAME> <subdomain.domainname.com>
5 Run tunnel
cloudflared tunnel run <UUID or NAME>
Ref:
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/Published at
2024-09-05 18:45:00Event JSON
{
"id": "4d8854407372359c18c28efe3932ac06ab4bce5ee2a7fe3e800e5ace80d27927",
"pubkey": "44397767dab844f1b8655877effa6b053a527fb108281fb8fe2b9b3e4db0b07f",
"created_at": 1725561900,
"kind": 1,
"tags": [
[
"t",
"siamstr"
],
[
"t",
"saimstr"
],
[
"r",
"http://localhost"
],
[
"r",
"https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/"
]
],
"content": "มาทำ home server ด้วย cloudflare tunnel ไม่ว่าจะทำ btc node, relays, home storage, หรือระบบสากะเบือ เรือรบ ก็ทำไปเถอะ\nอยากจะบอกว่าของเขาดีจริงๆ ได้ทั้ง ddns และ private server เลยเจ้าค่า\n#siamstr #saimstr\n\n\n\nStart tunnel Cloudflare\n\n1 create tunnel\ncloudflared tunnel create \u003cyour-name\u003e\n\n2 modify config.yml in dir .cloudflared\n\ntunnel: \u003cTunnel-UUID\u003e\ncredentials-file: \u003c.cloudflared/\u003cTunnel-UUID\u003e.json\u003e\n\ningress:\n - hostname: \u003cdomainname.com\u003e\n service: http://localhost:8080\n - service: http_status:404\n\n\n3 test config.yml is working \ncloudflared tunnel ingress validate\n\n\n4 create routing traffic \n* Now assign a CNAME record that points traffic to your tunnel subdomain:\ncloudflared tunnel route dns \u003cUUID or NAME\u003e \u003csubdomain.domainname.com\u003e\n\n5 Run tunnel \ncloudflared tunnel run \u003cUUID or NAME\u003e\n\nRef: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/",
"sig": "dd427f1d5e98101dc17d5a632d81bce19f19384e82fd4faf6d17f9da0a549ef68f3f45785fea2829b583fd059011d0c5397ba419ab7ab16bfc36ad878480fbd1"
}