I have absolutely no idea how I got here or what is going on
@mecamon
2 жыл бұрын
Dear lord! This is a life savior web server. Came to this video after spending like 4 hours trying to set up SSL with Nginx.
@shawnp0wers
2 жыл бұрын
I made this video shortly after I first learned about Caddy -- that was 2 years ago, and I've never gone back. It's just so SO simple.
@abdirahmann
2 жыл бұрын
🤣🤣 The bloopers... am dead!! and btw... i use traefik as a reverse proxy just because it was the first i learnt how to use when i was playing with my little homelab. though such a steap learning curve. i love it because of its technicalities, i am SHOCKED by how simple caddy is!!, just wOw!. Thanks for the video.
@abdirahmann
2 жыл бұрын
and btw... there is this product called authelia i use. its an authentiaction server that works with reverse proxies, its fully supported in traefik, nginx and HA-proxy but not caddy. That's also a reason am not using it but honestly... it's soooooooo simple am blown away by how fast that caddy setup was!.
@shawnp0wers
2 жыл бұрын
Interesting, i haven't heard of authelia before. Bummer it doesnt' work with Caddy. Because yeah, while I dont' know that it's any better than the other options, it sure is simple. Sorta like me. :D
@abdirahmann
2 жыл бұрын
@@shawnp0wers 🤣🤣 i agree you are a simple man.
@noweare1
Жыл бұрын
@@abdirahmann Caddy has its own "basicauth" or there are auth plugins you can use.
@siavongaboy
3 жыл бұрын
Thank you for explaining everything so simply and with great energy! This video is extremely under viewed and under liked. I will set up caddy in Docker and keep it simple, I got to deep into technical setups with rancher, kubernettes and traefik but this looks much easier and more in line with my needs.
@shawnp0wers
3 жыл бұрын
Thanks Maurice! I appreciate that. And yeah, it makes managing docker apps just like other apps on the system. I find it super easy.
@GameON-Playstation
Жыл бұрын
Short, easy to follow and straight to the point. Good job
@joegessner6837
2 жыл бұрын
Had been trying to set up Caddy in docker for a while with Duckdns and the challenges always failed. I used your video as guide and was finally able to get it working outside of docker. Only issue I had was it was trying to connect to my router instead of the docker container, I added :443 to the domain name in the caddy file and was finally able to reach the container. Much thanks sir.
@shawnp0wers
2 жыл бұрын
That’s awesome!
@MichaelSharpTechniSmart
Жыл бұрын
Wow, I have been missing out. Now 'm subscribed!
@shawnp0wers
11 ай бұрын
NOICE! Welcome welcome welcome. :)
@Lightcode777
10 ай бұрын
easy to fallow! thank you so much for the content you provide !!! :)
@adamsuail
2 жыл бұрын
How come I never saw you before 😂, more of those vids please 🙏
@shawnp0wers
2 жыл бұрын
I plan on releasing regular content in 2022, please stick around and help me decide what topics to cover! :)
@jame_sta
3 жыл бұрын
You have any more videos on Caddy 2? Subbed and liked :)
@shawnp0wers
3 жыл бұрын
Not yet, but I keep using it more and more.
@bala-st9cj
3 жыл бұрын
Thank you so much ,What a man.you made me a caddy lover
@shawnp0wers
2 жыл бұрын
So glad! I still use it so often. :)
@belaircomputerguyllc4001
3 жыл бұрын
Absolutely excellent channel. SOLID and CLEAR explanations. Are you still using Caddy?
@shawnp0wers
3 жыл бұрын
Aww, thanks! Yes - I still LOVE caddy.
@nicksgarage8295
2 жыл бұрын
this is great. i got some esxi vm's that have some websites that run lots of compute i need to serve and i aint gonna be paying aws an arm and a leg.
@shawnp0wers
2 жыл бұрын
Sweet! It's been a long time, and this still works so well it's creepy. Seriously like zero maintenance. :)
@XaYaZaZa
3 жыл бұрын
OMG this looks so helpful!!!! THX!
@anuswadh
3 жыл бұрын
Thank you Shawn. Works like a charm
3 жыл бұрын
Amazing content. As a follow up, maybe you could guide us through an example of more than one reverse proxy!
@shawnp0wers
3 жыл бұрын
Hi Victor. :) I might do that -- but honestly, it's just a matter of putting the info inside curly braces. So you have a domain, info about that domain inside curly braces, then another domain, and another set of curly braces for that domain, etc, etc.
3 жыл бұрын
@@shawnp0wers It's true! I noticed that shortly after commenting! Caddy is amazing and super easy!
@MarcioBrenerCosta
8 ай бұрын
Congrats by the video. It's realy great😊
@m_205
Жыл бұрын
Hello, Caddy does everything under the hood , Can you give some general idea how can I do the same with nginx.
@tunlinaung010
3 жыл бұрын
You are the best teacher for me thanks
@shawnp0wers
2 жыл бұрын
Wow, thanks.
@rhysdenno5993
3 жыл бұрын
Does this not work for remote access?
@JordanRolph
3 жыл бұрын
Really helpful, thanks Shawn!
@eeee3202
3 жыл бұрын
This doesn't work for me. I can install caddy but then i go to bw."TLD".com and it doesnt resolve. Are we suppose to do anything there?
@shawnp0wers
3 жыл бұрын
The DNS has to be set up apart from Caddy. Make sure the domain name resolves to the IP of your server. (Or to your external IP address and your router port forwards into your caddy server)
@jacobnoori
2 жыл бұрын
This was so easy! Thank you!
@shawnp0wers
2 жыл бұрын
You're so welcome!
@tylersustare
3 жыл бұрын
This was amazing. Thanks Shawn!
@shawnp0wers
2 жыл бұрын
Glad you enjoyed it!
@dragon3602010
2 жыл бұрын
What is the difference with traefik and nginx proxy manager ?
@shawnp0wers
2 жыл бұрын
I'm so sorry I missed this, and I'm 1000% sure you're not still wondering. I'll answer in case someone else sees your question and wonders. They can both do the exact same thing. Traefik can be simpler, and a little more confusing at first to set up (IMHO) -- Nginx requires a little more ongoing maintenance, but is slightly easier to understand out of the box, and can do more complicated things if you need it to. (Again, IMHO) Both can do the job, both are powerful. If one is working well for you, there's probably no need to switch, unless you just want to learn how the other works.
@miguelfonseca1980
7 ай бұрын
Thank you very much , I got my dns working with https now :) I don't klnow if anyone used immich before , I'm not able to redirect to the web page , can you try to help me please ? Thank you in advance
@Clone9673
Жыл бұрын
Thank you very much. This is very helpful.
@shawnp0wers
Жыл бұрын
Glad it was helpful!
@vikramkumar8276
4 жыл бұрын
Hi sir wonderful video 👌 ..I like this and also expecting more tips like this on your channel👑
@shawnp0wers
4 жыл бұрын
Thanks Vikram! I'm trying to decide what the best "day of the week" to release tech tips might be. But I'm going to keep posting them, for sure!
@theboomingbomber
Жыл бұрын
Thank you for explaining soo well
@shawnp0wers
Жыл бұрын
Glad it was helpful!
@NyneIX9
3 жыл бұрын
If I already enabled remote access for Plex, will Caddy interfere with this? 🤔 Excellent video, by the way!
@shawnp0wers
2 жыл бұрын
Ugh, sorry I missed this -- no, plex should use a different port.
@NyneIX9
2 жыл бұрын
@@shawnp0wers Hey! Much appreciated! Better late than never, I always say. There are other KZitemrs of your size that just don't respond at all.
@shawnp0wers
2 жыл бұрын
@@NyneIX9 That's incredibly kind, thank you. :)
@Eldrazer
2 жыл бұрын
I can't edit /etc/caddy/Caddyfile, it says this file is unwritable. Any help?
@shawnp0wers
2 жыл бұрын
Sorry for the late reply, I've been really sick -- you might need to "sudo" in order to edit the file with root privilege. I think the file is owned by root, so without sudo, you won't be able to write to it...
@dailymeow3283
3 жыл бұрын
Hey Shawn, how can i install caddy on windows, i have node project and docker got issues with node on windows
@shawnp0wers
3 жыл бұрын
I don’t actually know - I’d check out their website to see.
@jokorusbiyanto
4 жыл бұрын
Hi Shawn,,, nice video. Can it be used for nginx as reverse proxy?
@shawnp0wers
4 жыл бұрын
Yes! That’s what I was using before, but Caddy has an even smaller footprint, and configuration is simpler. It has a ton of modules for more complex needs, but out of the box I’m using it on 10-15 sites and apps.
@thehandofjibreel8756
3 жыл бұрын
I like your energy. Cool video :-) Please, I have a question: How do you reverse-proxy two subdomains to a local domain with two different ports? user.example.com -----> localhost:4000 admin.example.com -----> localhost:4001 I'm not interested in load balancing, in this case, just reverse proxy. Just subscribed by the way!
@shawnp0wers
3 жыл бұрын
Thanks! Here's a copy/pasta of the comment I made on a similar question one of my other recent videos: The Brain of Shawn • 5 days ago Yes! Mine looks something like this: site1.domain.com { reverse_proxy internet.ip.address:port } site2.domain.com, alias.domain.com { root * /var/www/mysql file_server encode gzip php_fastcgi unix//run/php/php7.2-fpm.sock }
@shawnp0wers
3 жыл бұрын
That example is one reverse proxy and one standard website, but each "stanza" can be a reverse proxy. As long as the domain resolves to the IP of the caddy server, it should match up the correct info in your Caddyfile.
@ddrci88
2 жыл бұрын
Hey Shawn, can you make caddy reverse proxy to apache tutorial?
@shawnp0wers
2 жыл бұрын
So, the process is largely the same, but there's a problem if they're running on the same machine. By default, Caddy listens on both port 80 and port 443. If you have Apache on the same server, it will try to listen on port 80 (by default at least). If you have Apache on a different machine, or different VM (or listening on a different port), you could set it up to proxy to the non-SSL apache port. If you have apache use a different port on the same machine, you'd just set Caddy to proxy to localhost:THAT_NEW_PORT -- or if it's on another machine/VM/or_IP, you'd have Caddy point to other_internal_IP:80 Does that help?
@ddrci88
2 жыл бұрын
@@shawnp0wers thanks a lot. I’m looking for a new stack now :) I wa saying Nginx reverse to Apache. Want to try out candy to Apache
@shawnp0wers
2 жыл бұрын
@@ddrci88 No problem! I really like Caddy for its simplicity and automatic certificate handling. I've struggled to get Wordpress to work behind a reverse proxy of any sort though. It really wants to run in SSL mode, but having another machine do the SSL part seems to cause a lot of trouble. I'll probably play with it more at some point, but right now, I have my Wordpress installs running on another server. :/
@noweare1
Жыл бұрын
@@shawnp0wers You can also change the default ports for caddy. You put it in the global variable section of your Caddyfile ie. http_port 8080 https_port 4430 if you want to use some other ports
@shivanshsharma7422
Жыл бұрын
AWESOME
@shawnp0wers
Жыл бұрын
I still love Caddy. Use it for everything these days!
@jamallmahmoudi9481
2 жыл бұрын
Hi, cool&perfect
@shawnp0wers
2 жыл бұрын
Hey, thanks!
@OmgLuLzWTF
3 жыл бұрын
ok searching for nginx proxy server and openmediavault got me here.. I think I need to switch to caddy
@shawnp0wers
3 жыл бұрын
That was my path to caddy too! :)
@OmgLuLzWTF
3 жыл бұрын
@@shawnp0wers one question since I think this works the same as the one in openmediavault. since something is already using port 80/443, you can't really point your main domain to something internally and you need to use subdomains. Is my understanding correct?
@shawnp0wers
3 жыл бұрын
I point everything to caddy, and then forward into different servers/services based on DNS names. I’m not familiar with openmediavault, but caddy will forward to internal SSL ports as well. You can even force it to accept internal self-signed SSL. (I try to run everything unencrypted internally though, and have caddy handle all the certs) Honestly though, Wordpress has given me fits. I’m hosting directly via caddy/PHP for it instead of forwarding to another server.
@OmgLuLzWTF
3 жыл бұрын
@@shawnp0wers Thanks.. I might test this out tomorrow. You sir earned a sub As for wordpress, it doesn't like ports for some reason. Happened to me a few times before when I was stilling using it. I moved on to static webpages uses less resources, no database, easier to back up just copy and paste
@Gh0stRec0n313
3 жыл бұрын
do you need to open ports to get the ssl certificate?
@shawnp0wers
3 жыл бұрын
It uses ports 80 & 443. 80 is redirected to 443, but it’s also used to renew certs.
@sayanmdn
3 жыл бұрын
nice
@saurabhjain8904
Жыл бұрын
Its not working
@shawnp0wers
Жыл бұрын
I’m not sure what you mean, but my infrastructure was offline when I woke up this morning and I just got things going. (Power surge overnight from the power company)
@saurabhjain8904
Жыл бұрын
@@shawnp0wers I mean I did all the steps but caddy status shows failed
@shawnp0wers
Жыл бұрын
@@saurabhjain8904 hmm... I'd check permissions, or see if you can find any details in the logs to see what's going wrong. (probably in /var/log/caddy*)
@noweare1
Жыл бұрын
You have to port forward 80 and 443 in your router. Did you do that ?
@bbrendon
Жыл бұрын
this guy doesn't follow best practices at all.
@shawnp0wers
Жыл бұрын
I wash my hands after using the bathroom... And signal when changing lanes. So I follow *some* best practices. ;)
Пікірлер: 94