Free Secure Self-Hosting Using Cloudflare Tunnels

Поделиться
HTML-код
  • Опубликовано: 28 июн 2024
  • A tutorial that covers how to use Cloudflare Tunnel to provide a secure connection to your local resources without publicly exposing an IP.
    You can also find this tutorial as a written article on my blog at
    programmingpercy.tech/blog/fr...
    ** Links **
    Cloudflare Apps - developers.cloudflare.com/clo...
    Cloudflare Tunnels - www.cloudflare.com/products/t...
    Cloudflare Add Website / Domain - developers.cloudflare.com/fun...
    Cloudflare Registrar - www.cloudflare.com/products/r...
    Cloudflare Dashboard - dash.cloudflare.com/
    Cloudflare Zero Trust Dashboard - one.dash.cloudflare.com/
    Cloudflare Build Cloudflared From Source - developers.cloudflare.com/clo...
    Cloudflare Default Directory - developers.cloudflare.com/clo...
    Cloudflare Ingress - developers.cloudflare.com/clo...
    Cloudflare Run As Service - developers.cloudflare.com/clo...
    Installing Go - go.dev/doc/install
    Find Network Devices - itsfoss.com/how-to-find-what-...
    ** Affiliate links **
    NameCheap - shareasale.com/r.cfm?b=178199...
    Raspberry PI - amzn.to/3vrv5Se
    ** Code Blocks **
    ```go
    package main
    import (
    "fmt"
    "net/http"
    "log"
    )
    // endpoint that returns a welcome
    func endpoint(w http.ResponseWriter, r *http.Request){
    fmt.Fprintf(w, "Welcome to your API hosted Locally")
    }
    func main(){
    log.Println("hosting on 8080")
    http.HandleFunc("/", endpoint)
    log.Fatal(http.ListenAndServe(":8080", nil))
    }
    ```
    00:00 Introduction
    02:40 A Word Of Warning
    03:02 How Does Tunnels Work
    04:17 Adding DNS Settings And Website
    11:56 Adding you first Tunnel
    21:03 Creating A Simple Go Web App
    24:00 Configure Tunnels With CLI
    31:27 Ingress Rules
    34:00 Conclusion
  • НаукаНаука

Комментарии • 7

  • @arkantos14821
    @arkantos14821 4 месяца назад +1

    Very Practical
    Thanks man !!

  • @farzadmf
    @farzadmf Год назад +1

    Thank you for this video, very detailed walkthough.
    I really like (and follow) your videos, however this video is "unlisted", so I didn't see it.
    Also, I was subscribing to your blog's RSS feed, but I think after you migrated it, that feed is broken

    • @programmingpercy
      @programmingpercy  Год назад +1

      Hey ! I am glad you like it,
      Thank you for letting me know! I missed publishing it, whops,
      And for the RSS feed I'll get on it right away, I changed deployment method and my guess is that the build step has stopped working properly when generating the RSS

    • @farzadmf
      @farzadmf Год назад

      Great, thanks for letting me know, and keep up the good work

    • @programmingpercy
      @programmingpercy  Год назад +1

      Hey! Just wanted to say thanks for letting me know about the RSS, sorry for the delay.
      I've tracked down the bug, the Prerendering from VITE didnt really work with the Netlify-Adapter (My new Hosting) for SvelteKit.
      Ive revered to use the SvelteKit Static Adapter, and it is now validating as a valid RSS feed again. Thanks again!
      programmingpercy.tech/rss

    • @farzadmf
      @farzadmf Год назад

      Oh wow, REALLY appreciate you taking the time to investigate and the update. Gonna add the feed
      Thank you again, people usually ignore!

  • @newapk8574
    @newapk8574 Год назад

    Sir ❤️ good but how clouds flare server free internet please make video