Getting started with Caddy the HTTPS Web Server from scratch

preview_player
Показать описание


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.

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

run local http web server

Expose site publicly

secure caddy with https

brew install caddy

Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

What's that cool frontier communication panel that you used for port forwarding settings? I searched but did not find anything

hopewise
Автор

A very underrated tech channel here! Excellent video. Just subscribed!

moebob
Автор

I just get an error entering "caddy -host (myhomename)" says unknown command.

marcusk
Автор

im so happy people are finding caddy to be enjoyable

evanschaba
Автор

Is caddy multi-thread on windows? That's currently a major weakness of Nginx free.

marccawood
Автор

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)!

nchomey
Автор

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?

madhuvanthgopalan
Автор

it is not working for me. maybe I will try this after few days

محمّد.
Автор

How to do port forwaring if I am using mobile wifi ??

SHUBHAMSINGH-vdyd
Автор

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

jainneeraj
Автор

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

pipi_delina
Автор

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.

jame_sta
Автор

watching the first video from your great channel <3

muhammadahmad
Автор

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
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?

kaanaslan
Автор

im using duckdns and every time it tries to get the https certs its fails

joeharrison
Автор

i really like your content. keep up the good work man. 🍻

gotamp
Автор

Great video! Learned great new things. Any plans to make videos for hosting on AWS or other cloud services?

SoulReaperxx
Автор

hi, thanks for your great videos. BTW do u have video regarding SOAP ?

lowenzahn
Автор

was hoping to have a proper in depth setup on caddy but 60% of the video wasn't caddy related. :-(

damiendye
Автор

Any chance of getting a GraphQL api video like your REST one?

adamtak