Getting started with Caddy the HTTPS Web Server from scratch

  Рет қаралды 45,153

Hussein Nasser

Hussein Nasser

Күн бұрын

💻 More software engineering videos • Software Engineering b...
Caddy is an HTTP/2-enabled web server written in Go by Matthew Holt. It supports HTTPs by default and its one of the easiest web servers that provide lot of functionality such is proxying and load balancing and much more. Recently the QUIC http/3 is being added to this web server as well
This is a short video to show you guys how to setup caddy web server, run it a local http web server then secure it with HTTPS. We will probably make another video to showcase the advanced features of this cool web server or perhaps a crash course.
Note: I forgot to mention that since your IP is dynamic you will need to always update your IP address with the dynamic dns every-time your router gets a new public IP Address.
Matt Holt Twitter / mholt6
Jump codes
2:55 Installing
3:30 Run HTTP caddy
5:00 Expose your host publicly
7:30 Dynamic DNS (Free)
10:30 Caddy HTTPS
14:00 Summary
Cards
5:50 NAT
6:30 Public vs private ip
13:00 TLS
Install caddy
caddyserver.com/tutorial/begi...
run local http web server
Expose site publicly
secure caddy with https
brew install caddy
Support me on PayPal bit.ly/33ENps4
Become A Patron / hnasr
Stay Awesome!
Hussein

Пікірлер: 59
@moebob24
@moebob24 3 жыл бұрын
A very underrated tech channel here! Excellent video. Just subscribed!
@hnasr
@hnasr 3 жыл бұрын
Bill Bennett thank you Bill!!! 😊🙏
@muhammadahmad4093
@muhammadahmad4093 4 жыл бұрын
watching the first video from your great channel
@gotamp24
@gotamp24 4 жыл бұрын
i really like your content. keep up the good work man. 🍻
@hnasr
@hnasr 4 жыл бұрын
Gotam P thanks for the support!
@evanschaba945
@evanschaba945 4 жыл бұрын
im so happy people are finding caddy to be enjoyable
@hnasr
@hnasr 4 жыл бұрын
Evans Chaba pretty neat software
@ArashAkbarpour
@ArashAkbarpour 4 жыл бұрын
Good job man. Enjoyed.
@pipi_delina
@pipi_delina 3 жыл бұрын
Just learnt of the existence of the project and I saw your video and I knew I will be an expert in a minute... 🤗🤗😂 Thanks Hussein
@hnasr
@hnasr 3 жыл бұрын
haha So nice of you! I still need to make a video on Caddy 2
@esquilo_atomico
@esquilo_atomico 3 жыл бұрын
My boyyyyy this is awesome. Thank you
@jewelzelal
@jewelzelal 2 жыл бұрын
enjoyed and helpful. thank you
@SoulReaper599xx
@SoulReaper599xx 4 жыл бұрын
Great video! Learned great new things. Any plans to make videos for hosting on AWS or other cloud services?
@hnasr
@hnasr 4 жыл бұрын
Hollow Knight I probably should, if I will Im planning to use DigitalOcean for starters.
@madhuvanthgopalan4
@madhuvanthgopalan4 2 жыл бұрын
Thank you for all the great content you put out there. I have a question- how was Caddy able to secure the website without validating that you own that DNS?
@madhuvanthgopalan4
@madhuvanthgopalan4 2 жыл бұрын
It probably is more a Let's encrypt feature than Caddy's, but I'm still wondering, where did it validate the domain ownership.
@madhuvanthgopalan4
@madhuvanthgopalan4 2 жыл бұрын
I landed here and I think this is the answer (or at least part of it)- letsencrypt.org/docs/challenge-types/ Caddy is the ACME client for Let's Encrypt, I imagine.
@johnlovell8299
@johnlovell8299 4 жыл бұрын
Caddy wubserver! Thanks Hussein for the great tutorial!
@hnasr
@hnasr 4 жыл бұрын
John Lovell hey John your welcome thanks for your message! 🙏 still can’t pronounce it
@johnlovell8299
@johnlovell8299 4 жыл бұрын
@@hnasr can't wait to finish the tutorial. Already have the HTTP going through :). Next up: TLS baby!
@CraigregnierNet
@CraigregnierNet 4 жыл бұрын
Thanks man, I had tons of Caddy problems then I deleted the .caddy folder and everything worked.
@hnasr
@hnasr 4 жыл бұрын
Yes deleting .caddy folder solved many of my problems too. Thanks for your comment.
@jame_sta
@jame_sta 3 жыл бұрын
Hi @Hussein Nasser I love the video! Would you please create another video like this but with using the Caddyfile config setup? I think that would be awesome!! As Caddy Server really lacks videos and content, the devs don't make videos for their own product.
@chrisparky
@chrisparky 7 ай бұрын
Just watched this and agree a Caddy config video would be great. I've had a load of issues trying to get Caddy to work so I will try the tips in this video shortly.
@user-pg4dh8ok9v
@user-pg4dh8ok9v Жыл бұрын
Thank you so much!
@lowenzahn107
@lowenzahn107 4 жыл бұрын
hi , thanks for your great videos. BTW do u have video regarding SOAP ?
@hnasr
@hnasr 4 жыл бұрын
LOWENzahn thanks 😊 yes I do -- Simple Object Access Protocol Pros and Cons (Explained by Example) kzbin.info/www/bejne/n6WbqpWhhtp0npo
@lowenzahn107
@lowenzahn107 4 жыл бұрын
@@hnasr cool, thanks )
@hopewise99
@hopewise99 Жыл бұрын
What's that cool frontier communication panel that you used for port forwarding settings? I searched but did not find anything
@manusiasejati577
@manusiasejati577 2 жыл бұрын
Man, you need some energy drink.
@nchomey
@nchomey 5 ай бұрын
It would be cool if you could do a new video on Caddy, given that the first v2 beta was released at about the same time as this video and then the official v2 release 8 months later (3.5 years ago)!
@augmentos
@augmentos 4 жыл бұрын
Caddy2 now!
@marccawood
@marccawood 4 жыл бұрын
Is caddy multi-thread on windows? That's currently a major weakness of Nginx free.
@jain007neeraj
@jain007neeraj 3 жыл бұрын
just `caddy` doesn't work anymore, we either have to use `caddy run` or `caddy start` even after that it always says 404 page not found. Even when I have index.html available
@hnasr
@hnasr 3 жыл бұрын
Looks like I need to make Caddy 2
@BromleyJohn
@BromleyJohn 3 жыл бұрын
Try this:- caddy file-server --listen :2021
@marcusk7855
@marcusk7855 9 ай бұрын
I just get an error entering "caddy -host (myhomename)" says unknown command.
@marcusk7855
@marcusk7855 9 ай бұрын
Seems like "-host" has been replaced with "trust"
@damiendye6623
@damiendye6623 2 жыл бұрын
was hoping to have a proper in depth setup on caddy but 60% of the video wasn't caddy related. :-(
@kaanaslan1068
@kaanaslan1068 4 жыл бұрын
Hello, how can I secure my address with CaddyFile? I try the command caddy -host CaddyFile but it doesn't secure it. My CaddyFile is as below: # Django mydomainaddress.com { root /root/my_projects/my_project proxy / 127.0.0.1:8000 { transparent except /static } log /var/log/caddy.log ---- if I run it as: caddy -host mydomainaddress.com it works fine and I get the HTTPS but how am I going to be able to set this in the file and what command should I use?
@hnasr
@hnasr 4 жыл бұрын
Maybe update your file so it says instead of ? And i think you just need to run caddy without any parameter it will detect the caddyfile if it was in the same folder that.
@oroville12345
@oroville12345 2 жыл бұрын
how can i do this with ipv6 and a CGNAT?
@Mohammed71793
@Mohammed71793 5 ай бұрын
it is not working for me. maybe I will try this after few days
@wilbertvanbakel
@wilbertvanbakel Жыл бұрын
I' m watching a video and look at a prompt for several minutes and getting bored already
@SHUBHAMSINGH-vd4yd
@SHUBHAMSINGH-vd4yd 4 жыл бұрын
How to do port forwaring if I am using mobile wifi ??
@hnasr
@hnasr 4 жыл бұрын
SHUBHAM SINGH you mean mobile LTE? Well you can’t because there is no router or your control. If you mean WIFI then sure that is what I did I was on WIFI
@SHUBHAMSINGH-vd4yd
@SHUBHAMSINGH-vd4yd 4 жыл бұрын
Hussein Nasser yes, mobile LTE. I am glad you answered. Also I would like to tell you that the thumbnails in your videos are so catchy, that I get attracted to veiw one video after other😂. Anyways, nice content brother.
@adamtak3128
@adamtak3128 4 жыл бұрын
Any chance of getting a GraphQL api video like your REST one?
@hnasr
@hnasr 4 жыл бұрын
Adam Tak Oh yeah Im so excited about this technology, Im writing the script and doing the research will keep you guys updated! Thanks for your comment
@adamtak3128
@adamtak3128 4 жыл бұрын
@@hnasr You're amazing! I'm looking forward to it. Thanks. I found your channel because I was looking into cookies and sessions to secure my routes for login/register and protected routes like post creation, comment creation and so on. Every example I find is using JWT which people say is insecure so I'm trying to learn all about protecting my GraphQL api.
@hnasr
@hnasr 4 жыл бұрын
GraphQL video up! kzbin.info/www/bejne/nIfQgnakhsR4htU
@chrisg394
@chrisg394 10 ай бұрын
NAT? IPv6 to the rescue!
@Sippu-tw9jt
@Sippu-tw9jt 4 жыл бұрын
DHARMENDRA SAINI
@joeharrison6197
@joeharrison6197 4 жыл бұрын
im using duckdns and every time it tries to get the https certs its fails
@hnasr
@hnasr 4 жыл бұрын
Did you try the workaround at 13:00?
@joeharrison6197
@joeharrison6197 4 жыл бұрын
Hussein Nasser got it working I used a different caddy version
@hnasr
@hnasr 4 жыл бұрын
Joe Harrison nice! Which version did it break for you so people in the future wouldnt run into it.
@joeharrison6197
@joeharrison6197 4 жыл бұрын
Hussein Nasser was the latest stable version no beta ones
Caddy Server Magic: One-Click HTTPS Setup | Ultimate Guide!
15:59
Self-hosted Server accessible over Internet - EASY with Caddy 2!
16:54
UFC Vegas 93 : Алмабаев VS Джонсон
02:01
Setanta Sports UFC
Рет қаралды 225 М.
ААААА СПАСИТЕ😲😲😲
00:17
Chapitosiki
Рет қаралды 3,3 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 6 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 72 МЛН
Automatic SSL using Caddy Server: Nodejs reverse proxy
18:59
Mafia Codes
Рет қаралды 12 М.
HTTP Caching with E-Tags -  (Explained by Example)
16:47
Hussein Nasser
Рет қаралды 54 М.
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 254 М.
How to Make a Simple Caddy 2 Website (with automatic HTTPS)
7:31
Tony Teaches Tech
Рет қаралды 32 М.
Automatic SSL Certificates for any Domain with Caddy
33:20
TomDoesTech
Рет қаралды 7 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 11 МЛН