Тёмный

How to Install and Setup Traefik with Cloudflare Using Your Own Domain 

DB Tech
Подписаться 80 тыс.
Просмотров 63 тыс.
50% 1

In this video/blog post we’ll look at How to Install and Setup Traefik with Cloudflare Using Your Own Domain Name.
For this to work, you’ll need to have a domain name purchased. You’ll also need a FREE Cloudflare account. You’ll need your domain’s DNS settings pointed to your CloudFlare account’s NameServers.
To read more instructions, go to my blog here:
dbte.ch/traefikcloudflare
Here are other OpenMediaVault video tutorials:
• Docker/Portainer Tutor...
/=========================================/
Here's my Amazon Influencer Shop Link:
Amazon: dbte.ch/amazonshop
/=========================================/
Like what I do? Want to be generous and help support my channel? Here are some ways to support:
Patreon: dbte.ch/patreon
Ko-fi: dbte.ch/kofi
/=========================================/
Remember to leave a like on this video and subscribe if you want to see more!
/=========================================/
Follow Me:
Twitter: dbte.ch/tw
Facebook: dbte.ch/fb
Subscribe: dbte.ch/ytsub
#Traefik2 #CloudFlare #OpenMediaVault

Наука

Опубликовано:

 

17 мар 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 257   
@DBTechYT
@DBTechYT 4 года назад
Don't forget to say hi!!
@travlling_chain
@travlling_chain 4 года назад
Hi There.
@srbellare
@srbellare 4 года назад
Thanks for making such easy to follow videos with interesting topics. Just be careful that putting the content on the interwebs proxied through cloudflare on flexible SSL will just encrypt the browser to CF path. The path between CF to the origin server is plaintext which makes the authentication susceptible to eavesdropping. CF provides free SSL certification that can be used in traefik using CF as the acme provider, dns challenge and api token. Cheers
@TekExplorer
@TekExplorer 4 года назад
@@srbellare could you point me to a tutorial on using traefik with proper end to end encryption with cloudflare?
@TheRasthaman
@TheRasthaman 3 года назад
Hi, Great tutorial!!! planning to setup a Nextcloud with Traefik with CloudFlare in this secure way. Was following your video setting up Nextcloud but that didnt work out corrrectly. Can you please be able to do a video with Next cloud Traefik CloudFlare btw.is there any way to define a storage during the setup rather than connecting as a external drive? Thanks in advance Cheers.
@DBTechYT
@DBTechYT 3 года назад
@TheRasthaman, short answer is no. I don't use Traefik any longer. I've since switched to NGINX Proxy Manager as it's just easier to use
@trenchy24
@trenchy24 4 года назад
You Tuts are definitely the best. They have helped me massively with my OMV adventures! Good job!
@OdenKnight
@OdenKnight 2 года назад
Your tutorial is EXCELLENT! From your demo, I was able to build a load balancer and have local sub-subdomains that connect to my global domain. Thank you!!
@DBTechYT
@DBTechYT 2 года назад
Nice work!
@PeterBatah
@PeterBatah 8 месяцев назад
I stumbled upon this presentation three years after its creation. But, I still think that this one of the best Traefik tutorials by far. Thank you for sharing your time and expertise with us.
@DBTechYT
@DBTechYT 8 месяцев назад
Wow, thanks! I really appreciate that :)
@peachesfruitella
@peachesfruitella Год назад
hey this video is still relevant in 2023 .... great insights and tips esp for gotchsa! thanks so much
@tari0048
@tari0048 3 года назад
Thorough and well put. It's good that you explain every step and also add bonus information. Keep up the good work.
@DBTechYT
@DBTechYT 3 года назад
Much appreciated!
@dmurphydrtc
@dmurphydrtc 4 года назад
Excellent videos. Love all the content around rpi4, Docker, Traffik, etc. Keep it up.
@DBTechYT
@DBTechYT 4 года назад
Glad you like them!
@jack-nguyen
@jack-nguyen 6 месяцев назад
like the way that you tried to add more and more relevant information. They are really valuable
@CaptZenPetabyte
@CaptZenPetabyte 2 года назад
Brilliant, thank you. This may be the solution to my research of the last 2 weeks all in one video. Will test this out tomorrow. My brain needs a break first.
@DBTechYT
@DBTechYT 2 года назад
Best of luck!
@VictorDienstbier
@VictorDienstbier Месяц назад
Thank you so much for this detailes and easy to understand tutorial! I was trying to get this to work for more than a week and with your help it was really easy! Great work!
@DBTechYT
@DBTechYT Месяц назад
Glad it helped!
@nandurx
@nandurx 4 года назад
Really useful video!!. I love your content and explaining why and that's more important to naïve people.
@jellyduck100
@jellyduck100 4 года назад
Congratulations for 10k milestones, I don’t even know you’re using Linux every time this is brilliant! :D
@DBTechYT
@DBTechYT 4 года назад
Thank you so much 😀 I never thought I'd hit 10k. Just a year ago I was less than 5k!
@Weirlive
@Weirlive 2 года назад
I've been trying to understand Traefik for a while now and this was such a good walk through.. thank you for making this!!!
@DBTechYT
@DBTechYT 2 года назад
Glad it was helpful!
@Weirlive
@Weirlive 2 года назад
@@DBTechYT I have the CloudFlare portion setup for my domain and it works great. How Can I do this for a 2nd domain? do I need a second container or can I just use one?
@DBTechYT
@DBTechYT 2 года назад
To do the DDNS updater thing, I believe you'll need to have a different container per domain name. For Traefik, you just need one instance of Traefik on your setup.
@Weirlive
@Weirlive 2 года назад
@@DBTechYT thanks that’s what I was assuming… good thing containers are cheap
@AseDeliri
@AseDeliri 3 года назад
Fantastic work my man. Keep it up!
@danielmarte
@danielmarte 4 года назад
Thanks a lot! You made me save a lot of money on headache pills! Great job explaining things!
@DBTechYT
@DBTechYT 4 года назад
Great to hear!
@pasci_lei
@pasci_lei 7 месяцев назад
Thanks for the tutorial. It's the only one that worked for me, even if it is 3 years old.
@DBTechYT
@DBTechYT 7 месяцев назад
That's amazing!! I always try to make evergreen content and I love knowing that my tutorials still work :)
@jamieblair4336
@jamieblair4336 Год назад
Thanks man, you have no idea how much this has saved me from lots of frustration, God bless..
@DBTechYT
@DBTechYT Год назад
Glad I could help
@horstfuchs5888
@horstfuchs5888 4 года назад
Congrats to 10k! Always love to watch your tutorials. I've set up traefik today and it works like a charm. Thank you. I have exposed a couple of services to the internet behind a login but I'm concerned about brute force attack. Do you use fail2ban for your docker container? If so, are you going to make a video about on how to set it up? Thanks
@DBTechYT
@DBTechYT 4 года назад
Your modem/router is ALWAYS been hit with traffic looking for an opening. You should definitely have some sort of protection in place if you start opening ports.
@raylab77
@raylab77 3 года назад
This is awesome! I hope I can get this to work.
@saikouma1922
@saikouma1922 4 года назад
Really helpful thanks a lot man! you're amazing
@DBTechYT
@DBTechYT 4 года назад
Happy to help!
@ericthemojoman
@ericthemojoman 4 года назад
Great tutorial
@DBTechYT
@DBTechYT 4 года назад
Thank you! Cheers!
@gilvega68
@gilvega68 4 года назад
Thank you for all the tutorials you put out. I'm trying to take this a step further and access my music from outside the network using the airsonic or a subsonic app. Can you create a video showing how?
@SulTan-yw1xw
@SulTan-yw1xw 4 года назад
Thank you very much 👍
@DBTechYT
@DBTechYT 4 года назад
No worries!
@KaiBuskirk
@KaiBuskirk 2 года назад
new and confused.... will try again.... thanks, kai
@DBTechYT
@DBTechYT 2 года назад
You might consider installing NextCloud by itself and then using CloudFlare Tunnels/Access for a more secure remote access option
@somebussiness5677
@somebussiness5677 4 года назад
best video ever!
@DBTechYT
@DBTechYT 4 года назад
Thanks!! I'm glad you enjoyed it :)
@DevilDriver665
@DevilDriver665 4 года назад
Nice, keep 'em up. You could increase the font size in putty for better readability
@DBTechYT
@DBTechYT 4 года назад
Thanks for the tip!
@leeblack2103
@leeblack2103 3 года назад
NICE!!!!!! Thanks a ton
@DBTechYT
@DBTechYT 3 года назад
You bet!
@TheMrDrMs
@TheMrDrMs Год назад
Thanks for the video. I've moved over to using Cloudflare tunnel now, and for some reason struggling with sorting that out + traefik 2. (I don't believe it should be much of a difference re config) would love a video on setting up cloudflare tunnel to traefik and getting full SSL handled.
@zachfrost2180
@zachfrost2180 4 года назад
Thanks for posting this! I referenced it quite a bit when setting up a publicly available Ombi instance. Was end to end encryption set up with cloudflare to encrypt the traffic to the origin server in your example?
@DBTechYT
@DBTechYT 4 года назад
Excellent! Yeah. I used CloudFlare to handle my SSL encryption as I thin it's easier than using Let's Encrypt.
@Raspikabekk
@Raspikabekk 3 года назад
Awesome content and video! Congrats. Wonder if you've tried to set the SSL connection with cloudflare in a FULL SSL way, having the certificate in the traefik server with letsencrypt. That'd be a great addition to your content :)
@DBTechYT
@DBTechYT 3 года назад
I use full node on my setup now that I'm using NGINX Proxy Manager
@intangiable
@intangiable 2 года назад
Hey man, I just want to say this video is awesome i’m so close to reverse proxying ombi/overseer, but i’m not there yet. Https entrypoint not defined or not found the error is along those lines. If i set the entrypoint to web the subdomain opens the web portal. What an I doing wrong? I’ve used the overseerr and ombi documentation.
@aaronjohnson8319
@aaronjohnson8319 4 года назад
i have a SRV record below the C name do i need that ?
@crusaderfox6684
@crusaderfox6684 Год назад
@dbtech . Thanks for the great article. I finally got Traefik setup with this. However am slightly confused on to setup SSL certs. With Full restrict mode on in CloudFlare
@DBTechYT
@DBTechYT Год назад
I wish I could help, but this video is so old and I've since switched to using CloudFlare tunnels for my remote access that I have very little memory on how to do anything with Traefik
@crusaderfox6684
@crusaderfox6684 Год назад
@@DBTechYT Thanks for the reply. Will watch some CloudFlare tunnels videos you have put up
@AryssaAbah
@AryssaAbah 4 года назад
Thank you for all the OMV videos. Really help me a lot. I was wondering how do you make backup or clone the entire OMV system disk in case there is a failure? FYI I am using 120GB SSD for the OMV Operating System and 2GB HDD for my data. I saw that there are a few backup plugins in the plugins section but no documentation on how to use it. Really appreciate if you can help me on this matter. Thanks!
@DBTechYT
@DBTechYT 4 года назад
Thanks for watching!! I really appreciate your support! I do have a backup setup, but I really need to redo it with a larger drive as the 16GB thumb drive I'm using is full now. I'll try to make a video on how to setup a backup and maybe even how to restore a backup when I get some time to redo my backup. :)
@LetsPlayNation
@LetsPlayNation 4 года назад
Congratulations on the 10k! Could you make a Video about How to Convert mkv to mp4 automatically on a raspberry pi, because Plex doesnt want to play mkv's :-( And How to install a FTP with OMV That would be awesome
@DBTechYT
@DBTechYT 4 года назад
Thanks for the Congrats!!! I don't know if a Pi is powerful enough to convert MKV to MP4 in a timely fashion. I feel like you would need a Pi just dedicated to that process and even then it would be SLOW. I've thought about the FTP thing but didn't dig too much into it since it's built into OMV, but I might get around to it at some point. Thanks for watching!!
@jonathangray3864
@jonathangray3864 4 года назад
Okay so everything between me, agent, is using CloudFlare SSL, but there is nothing secure between CloudFlare servers and my home server. Right? Everything else is great but I want something stronger encryption. I wanted this video for 5 times trying to see where I skipped that part before I went looking at how CloudFlare really works.
@djoynik
@djoynik 2 года назад
works nice! try 5-10 manuals from youtube and web and nothing works. but your manual working fine. You are awesome. Question? its working only for one domain? or redirection to second.domain works too? how to secure by password main dashboard?
@nordinekhalfoun1257
@nordinekhalfoun1257 4 года назад
Thanks for your tutorial ! I'll try in my home network. 😉
@DBTechYT
@DBTechYT 4 года назад
Have fun!
@technoboijoe
@technoboijoe 4 года назад
Thanks for the tutorial. I am having trouble loading the docker-comose up -d command. I am getting "Error: the compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'traefik' and the same for 'web'. Any idea the issue? I am on OMV5, and docker-compose ver. 1.21.0. Please help. It seems to be thinking the .yml file composition isn't compatible
@gopinathnath6747
@gopinathnath6747 4 года назад
Can you help with letsencrypt configuration. I have uncomment the letsencrypt configuration but its taking TRAEFIK DEFAULT CERT” certification. I feel like something is missing for letsencrypt configuration
@cezary188
@cezary188 3 года назад
I've asked the "guy from servers" if he knows Docker and can help me set up my websites in containers, and he said: Docker? That's for development ! You don't use this in serious production environment ! I was like no way ! It has to be the way ! Cause the concept is awesome! And so I'm, sitting second week watching and learning all of the stuff that I'll need to move my websites ( I want to start few other websites based on python and other things, and don't really want to mess up the server config by installing to many things at once) So the question is: I'll need to install and configure Debian in host server (my servers are running Debian since the begging) and install Docker. Then Rancher with Kubernetes in container ( because it's easier to manage and scale everything with Rancher) Then Traefik ( it's a magic sauce that really answer a lot of my questions) Of course, I would like to use Let's Encrypt and Cloudflare for everything Then build some containers for my websites( Apache with alpine, php, mysql) some other with Python and other stuff etc. What about managing FTP accounts for domains and setting up the access to folders for users ? What about setting up emails for different domains ? I found poste.io in Docker container which is a great idea but how I'll set up different emails for different domains all in one container with poste.io ? What about thins like cron ? Can this be done from the level above containers/websites or I just need to add some free panel like Virtualmin,Webmin,Ajenti to container image to manage all of that? So far I've found one guy actually showing how to install Traefik with Let's encrypt,Kubrenetes,Docker on actual server and connect domain to it to one container. But no tutorials on how to setup,move and manage existing websites with multiple domains to containers. You can either find some videos on how to set up Docker for one simple task on your home lab or either lectures about scalability, clusters etc. We need some videos about something in the middle ! :P to make video(s) about setting all this up with at least 2 domains and move existing websites, I can pay for test VPN and redirect some domains for testing ( along with web website content) Many thanks for reading. Let me know what you think.
@DBTechYT
@DBTechYT 3 года назад
Docker gets used a lot in home environments like what I demonstrate on my channel. It's easy to use and deploy new applications. If you're trying to learn Docker and "the guy from servers" wants to talk trash then move on. If he doesn't like Docker that's fine, but he shouldn't be a dick about other people wanting to learn it.
@ParaLux89
@ParaLux89 4 года назад
First of all: Great video, as always! :D I still have so much to learn about this stuff but its a lot of fun. I have an OMV server at home that is running jellyfin, heimdall, a minecraft server, etc. thanks to your awesome tutorials. Now here is my question: Does this setup work for jellyfin too? I dont want to use a vpn on my phone just to connect to my server everytime I'm outside of my home network.
@DBTechYT
@DBTechYT 4 года назад
It should work
@waqarsolo1
@waqarsolo1 4 года назад
For some reason the ssl isn't opening up. Can you please point me to to do that?
@VESKOSTOEV
@VESKOSTOEV 2 года назад
Great 😃
@iamrage4753
@iamrage4753 Год назад
can you do a setup guide of adding authentik + crowdsec to this please?
@t1ckr4te
@t1ckr4te 3 года назад
Awesome, just a question, on which level did you set the SSL parameters in Cloudflare settings ? Thanks a lot for your work !
@DBTechYT
@DBTechYT 3 года назад
If I've got a Let's Encrypt SSL on my server AND a CloudFlare SSL, I set CloudFlare to "full".
@t1ckr4te
@t1ckr4te 3 года назад
@@DBTechYT Alright thanks !
@Smoothi0815
@Smoothi0815 10 месяцев назад
How is it possible to connect to the bridged network ips like your traefik container from your browser??
@beans6186
@beans6186 2 года назад
Do you not copy over the DNS records from PorkBun?
@scottmains6674
@scottmains6674 4 года назад
This is a great tutorial! So much easier to get my head around compared to nginx. Is it possible to create a stack from containers that I already have running?
@DBTechYT
@DBTechYT 4 года назад
I don't understand your question. What are you trying to accomplish?
@scottmains6674
@scottmains6674 4 года назад
@@DBTechYT I have an instance of odoo running already. I would like to see how I can get Traefik to work alongside this. From my understanding, I would need to create a stack in Portainer?
@channelmegafide
@channelmegafide 3 года назад
Question. How do I set it up to forward to a docker container on another device (separate from the server with traefik)?
@DBTechYT
@DBTechYT 3 года назад
I don't know that you can with Traefik. I do it all the time with NGINX Proxy Manager, though.
@D4ddyRazzy
@D4ddyRazzy 4 года назад
Thank you, i just started with OMV 5 and had troubles with docker instead of plugins, you helped a lot. 1 question, if i make an internal dns record. will this still work?
@D4ddyRazzy
@D4ddyRazzy 4 года назад
is it posible to get Pihole working with this setup?
@DBTechYT
@DBTechYT 4 года назад
What do you mean by "internal DNS record"?
@winecountrygames1859
@winecountrygames1859 Год назад
You sir are amazing! So easy to follow and soooo helpful. My only question is none of my domains work but they show in traefik but I just bought the domain and made the cloudflare account it said something about pending. Do I just wait a while? Liked and Subbed
@DBTechYT
@DBTechYT Год назад
it can take a day or so once a domain has been purchased for it to be available
@idocinthebox
@idocinthebox 3 года назад
How about OMV5, Cloudflare, NGINIX proxy manager and Portainer 2.0. I know you made a similar video so maybe an update. I also could not find your stack for the proxy manager to use in Portainer 2.0.
@4guysdigitalenterprise303
@4guysdigitalenterprise303 2 года назад
I had issues at the " docker-compose up -d " part. I received the error: "Cannot autolaunch D-Bus without X11 $DISPLAY" I was able to fix it by running the following while SSH'd inside docker: apt-get install pass gnupg2 Then I create a gpg2 key by doing: gpg2 --gen-key traefik now shows up in Portainer and running on the appropriate network.
@markclarke4895
@markclarke4895 4 года назад
I really like this approach and want to get it setup on my server. I just have one question. Would I have to manually update my new IP address every time when my ISP renews it?
@DBTechYT
@DBTechYT 4 года назад
If you install the clouflare container I show in the video it will update automatically
@markclarke4895
@markclarke4895 4 года назад
@@DBTechYT My fault, I just got to that part in the video. lol
@DBTechYT
@DBTechYT 4 года назад
Awesome. Glad you got it sorted
@Ky-vv8nj
@Ky-vv8nj 2 года назад
what ports need to be fwd' on your router for traefik?
@DBTechYT
@DBTechYT 2 года назад
80 and 443
@FUTOS
@FUTOS 3 года назад
Hey thanks for all your tutorials and all this effort! I followed your tutorial but I get the browser Error "ERR_TOO_MANY_REDIRECTS" if I want to visit the dashboard over my domain. local ip:8080 works fine!
@FUTOS
@FUTOS 3 года назад
nvm, I forgot to set 8080, my bad
@christophergolden9346
@christophergolden9346 2 года назад
Did you have any luck getting plex working with your traefik setup. I removed all the ports like you said but I cant get it to work.
@Reflexiony
@Reflexiony 4 года назад
Would there be anything against using a free domain like DuckDNS?
@datawolk
@datawolk 3 года назад
Is it also possible to use other ports then 80 & 443? My ISP don't let me open them..
@DBTechYT
@DBTechYT 3 года назад
Probably, but you'd have to map other ports to 80 and 443 from the outside to the inside of your network
@leremtegiw3895
@leremtegiw3895 4 года назад
Thanks for the tutorial! it works great! Do you know how to setup traefik so that it also handles application that were deployed outside of docker? Thanks!
@DBTechYT
@DBTechYT 4 года назад
Do you have access to the applications in Portainer?
@leremtegiw3895
@leremtegiw3895 4 года назад
@@DBTechYT No I don't. In particular, I try get access to plex via my own domain instead of using app.plex.tv.
@maurofrigerio
@maurofrigerio 4 года назад
You can use the file provider, the server must be reachable from traefik
@TassosPhotographyStudio
@TassosPhotographyStudio 3 года назад
Can you use DuckDNS and Cloudflare together ? DuckDNS to track your dynamic IP and then proxy it via Cloudflare. Makes sense ?
@DBTechYT
@DBTechYT 3 года назад
No you can't use them together. You can buy a domain name from porkbun for $0.99 so there's no reason to use duckdns.
@techtechuw597
@techtechuw597 3 года назад
Hi DB Tech. Do you happen to know if OpenVPN to my home network is possible if Cloudfare domain is proxied? I tested and it's not working when proxy is enabled. Likely not possible with their free service. I'd keep my IP behind proxy if theres some trick available without subscribing to paid service. Their paid service is so expensive, that It would be cheaper then to rent a VPS and set VPN in to that instead.
@DBTechYT
@DBTechYT 3 года назад
You have to bypass Cloudflare in this instance.
@techtechuw597
@techtechuw597 3 года назад
@@DBTechYT I just made a CNAME subdomain to domain and so i get to hide the ip on my main domain at least. Only that subdomain is exposed now.
@ArindamPalAndy
@ArindamPalAndy 3 года назад
I followed this one too and somehow got booksonic working, as in, it shows up on Traefik dashboard as successful. When I click the sitename, I do get a 502 Bad Gateway error. Upon checking the booksonic logs I find - Unable to start webserver error. Is this a permissions issue?
@OzDeaDMeaT
@OzDeaDMeaT 2 года назад
how are you getting an SSL from cloudflare without talking to the global API for cloudflare?
@DBTechYT
@DBTechYT 2 года назад
The ssls are being issued at the URL side of things. All the DNS stuff is on their side so that makes it easier
@zaonpt
@zaonpt 2 года назад
Do we need Fixed IP address? My public IP is dynamic and keeps changing.
@DBTechYT
@DBTechYT 2 года назад
If you have a dynamic IP, then you can use this to update CloudFlare: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Nf7m3h11y-s.html
@jjoonnaapphhiill
@jjoonnaapphhiill 4 года назад
Hi DB Tech, You have no idea how much your videos are helping me, as a complete noob... Only a year I started my OMV project at home, and it feels I've been through so many things! Anyway... I did follow your guidelines, and it messed up with my nextcloud setup. I mean, I either have to have Traefik on 80/443, either Nextcloud, but if I use other ports, Cloudflare is sending a 502 back... I'm not begging for help, just to know, does a way out seem to exist? Kind Regards! Jonathan
@DBTechYT
@DBTechYT 4 года назад
It actually could be a browser caching issue. I've run into it and at least one other person had that issue in the comments of this video. Try opening the URL in a completely different browser. For instance, if you use Chrome, then open the URL in FireFox or IE
@jjoonnaapphhiill
@jjoonnaapphhiill 4 года назад
​@@DBTechYT Thanks for your reply! I really did my best here... Seems like whatever I do, if I don't set Nextcloud on ports 80 and 443, Cloudflare wont redirect there. Just another 502... I'll dig, I don't want to choose between Traefik and Nextcloud! Cheers from confined Paris
@DavidWoodruff1972
@DavidWoodruff1972 4 года назад
Is there a way to hide you URL? I want to be able to access it from outside my network but do not want the entire world to see myTraefik page, music, wiki, etc.?
@DBTechYT
@DBTechYT 4 года назад
Yeah. You can edit the Traefik container and change the lable for "traefik.enable" to "false". You'll still be able to access Traefik on your local network, but it won't be available to the general public. Screenshot: imgur.com/a/yDdQnrz
@ronald0122
@ronald0122 3 года назад
How can you secure this? The proxy has still rights to the docker.sock
@DBTechYT
@DBTechYT 3 года назад
I wouldn't use this method any longer to be honest. But using either this or NGINX Proxy manager with CloudFlare uses 2 SSLs (one on either end) to secure the traffic.
@gl5638
@gl5638 4 года назад
Very good video! One question, will all this work if i set it up on a Raspberry Pi?? Thanks
@DBTechYT
@DBTechYT 4 года назад
That's a question that has been popping up a bit lately. I'm not sure. I've only tested this on x86 processors, not ARM processors.
@voltovful
@voltovful 4 года назад
DB Tech so how many of your omv tutorials i can use for rpi 4?
@voltovful
@voltovful 4 года назад
so i find out official traefik for docker is suported for arm v8 so i think it will work
@chocknog2054
@chocknog2054 4 года назад
Hi, how do you secure monitor.yourdomain.com? Currently its open to the internet.
@DBTechYT
@DBTechYT 4 года назад
Set the Traefik label to false. Then you can still access it on your-server-ip:8080
@BharathRao
@BharathRao 4 года назад
Hi, Thanks for explaining about traefik, this is my first time trying this out, I am unable to get dashboard page working over dns, Could you please suggest. the page works locally using 192.168.x.x:8080 though. I have ports 80 and 443 open. Cloudflare ssl is set to Flexible. Has https is on
@DBTechYT
@DBTechYT 4 года назад
Are you getting any error messages on your screen when you try to access the dashboard?
@BharathRao
@BharathRao 4 года назад
@@DBTechYT I deleted everything, and set it up again. Traefik works fine on my NAS locally. In Cloudfare, If i set SSL to full -> Error 521, Web Server down. In Cloudfare If I set SSL to Flexible -> Error 522, Connection Timed out Interestingly within traefik, If I am to check monitor.* services the server status is has a red icon ( error or down), its trying to access a 172.x.x.x:80 URL. Is that intended? I think if that gets solved, it might work, but not sure what to do. (prnt.sc/rpfmnx)
@DBTechYT
@DBTechYT 4 года назад
That's weird. Mine actually looks the same as yours, but I've got a different IP. Mine isn't 172.x.x.x. imgur.com/a/VbvXYYT Do you have Traefik and your associated containers set to be on the "web" network? Like this: imgur.com/a/a7KJq2i
@BharathRao
@BharathRao 4 года назад
@@DBTechYT Yes, it is set to web network, For me, as cloud flare is set to https, it redirects to https domain address rather than http, would that cause any difference? Also, to test, I uncommented 443 line, added websecure network, but did not change anything. Also moved a container to web network, added the labels, that did not work either. All sites are giving the same message. As for my IP being 172.xx all the networks I have in docker have same IP series which start from 172.x
@Dylan1o1
@Dylan1o1 29 дней назад
How do you do it with Minecraft Bedrock Server?
@brandon321
@brandon321 4 года назад
hi, is it possible to get https access for portainer with Traefik ? Thanks for your tutorial
@DBTechYT
@DBTechYT 4 года назад
You could, but I wouldn't recommend it. That's the heart of your server and if someone hacks it, you're screwed.
@brandon321
@brandon321 4 года назад
@@DBTechYT thanks for the response, I understand but by default portainer is not in https access so is not really secure. Maybe I just need to get a let's engrypt certificats to secure it?
@welbeschikbaa
@welbeschikbaa 4 года назад
Hmmm I followed it and setup a container under it (portainer) which says it is insecure?
@DBTechYT
@DBTechYT 4 года назад
Which one says "insecure"? Did you write in the URL bar? Do you have https rewrites turned on in CloudFlare?
@welbeschikbaa
@welbeschikbaa 4 года назад
@@DBTechYT Well... Fixed that now. Got it working. I would really mention the separate video.
@voltovful
@voltovful 4 года назад
hi whats the benefit to have my home server on internet domain?
@DBTechYT
@DBTechYT 4 года назад
It's easier to remember than the IP address your ISP gave you. And you can put an SSL on a domain name.
@voltovful
@voltovful 4 года назад
@@DBTechYT i should try to setup
@vgamesx1
@vgamesx1 3 года назад
Is your setup still working? I followed your guide and I installed watchtower to update containers for me and recently my website has gone down, I know my server is doing fine because local containers like portainer or pi-hole work just fine, my domain / cloudflare both look perfectly fine, no settings have been changed as far as I can tell, so I can only presume that an update to traefik has broke it or my configs... :( If another update doesn't come soon and fix it I think I might switch to HAproxy, traefik has been a headache to deal with.
@DBTechYT
@DBTechYT 3 года назад
I switched to NGINX Proxy Manager a few months ago and it has been MUCH easier to work with than Traefik ever was.
@vgamesx1
@vgamesx1 3 года назад
@@DBTechYT Thanks for the suggestion, anything with a GUI would be amazing to have at this point, I know HAproxy has one as a third-party paid option or using pfsense, since I don't currently use pfsense I'll try NPM first.
@DBTechYT
@DBTechYT 3 года назад
Thanks! Check this video out: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bQdqf5xAyUk.html
@vgamesx1
@vgamesx1 3 года назад
​@@DBTechYT Thanks again for the recommendation, although my site randomly started working again with no intervention on my part, I took the time to re-do my set up with NPM and it's sooo much better and it took less than an hour to fully switch over, I still left traefik and the labels, so I should I ever need to I can easily flip it back on and switch the labels to true but I'm probably never touching it again, have a great day.
@riba3083
@riba3083 8 дней назад
I am trying to run it on wsl and it only recognizes localhost
@TheRealAnthony_real
@TheRealAnthony_real 2 года назад
what about if I want to route the whole network traffic through this traefik container ?
@DBTechYT
@DBTechYT 2 года назад
I guess that depends on what you mean by "whole network traffic". Do you mean all your containers or do you mean like ALL the traffic for everyone on your network?
@TheRealAnthony_real
@TheRealAnthony_real 2 года назад
@@DBTechYT so I have for example 3 pve's and several lxc's under them .. do I have to install a traefik instance for all 3 pve's ? It is my understanding that once you created a docker "web" network that's within that only docker
@DBTechYT
@DBTechYT 2 года назад
That is my understanding as well. I'm not sure how you'd handle having multiple instance trying to use Traefik. Honestly, it's one of the reasons I switched to NGINX Proxy Manager for my self-hosting reverse proxy needs
@TheRealAnthony_real
@TheRealAnthony_real 2 года назад
So you reckon ngnix is better ?
@DBTechYT
@DBTechYT 2 года назад
Honestly it depends on your use-case, but I prefer it as I can have one NGINX container setup and then route traffic to anything on my network with it.
@ahmedel-akkad6587
@ahmedel-akkad6587 2 года назад
what if my public ip address changes? How do I add the A record?
@DBTechYT
@DBTechYT 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Nf7m3h11y-s.html
@ahmedel-akkad6587
@ahmedel-akkad6587 2 года назад
@@DBTechYT Thank you!
@James-li8cm
@James-li8cm 2 года назад
the thing you need to know about cloudflare's ssl, is the traffic to cloudflare is encrypted, however, the traffic from cloudflare to your home IP IS NOT ENCRYPTED...
@DBTechYT
@DBTechYT 2 года назад
It can be encrypted with a local SSL. Honestly, it's why I switched to NGINX Proxy Manager. It's easier to use and installs local SSLs if you want.
@James-li8cm
@James-li8cm 2 года назад
@@DBTechYT yes, I have been using Nginx Proxy Manager - thanks to you for your videos on this topic. (so much easier)
@alphapapa77
@alphapapa77 2 года назад
What about a service/server that is not in docker?
@DBTechYT
@DBTechYT 2 года назад
You'd have to know what port(s) your other service/server is running on and point Traefik to it
@alphapapa77
@alphapapa77 2 года назад
@@DBTechYT That is what I am looking for - found something. Nothing too hard. Now to figure out forcing HTTP instead of my HTTPS redirect for something.
@MrEndzo
@MrEndzo Год назад
Use duckdns instead of buying a domain?
@DBTechYT
@DBTechYT Год назад
Only if you hate yourself. Seriously, though. Domains are like $10/year and worth the convenience
@PubgPeaks
@PubgPeaks 3 года назад
Hi, Thanks for all the hard work. Can you make a similar tutorial for Unraid. I honestly could not able to replicate it on my Unraid server and will appreciate if you an help in some way
@johnfery7393
@johnfery7393 3 года назад
Hello, First of all, thank you for your videos. My question is not related to this topic, but I don't know how to install personal website on omv5? Thank you. John fery
@DBTechYT
@DBTechYT 3 года назад
Hi! I'm actually thinking about making a video on showing how to install WordPress and make it publicly available.
@johnfery7393
@johnfery7393 3 года назад
@@DBTechYT Wordpress, I knew how to install it without worries, but I have 2 other sites that I would like to put online, but I don't know how to access them and how to give them a port number. With omv4, there was no problem and very easy to install but with omv5 it's not the same thing at all :(
@mbarela82
@mbarela82 4 года назад
How do you use other multiple root domain names with Traefik? Like "example.com" instead of "site.example.com".
@DBTechYT
@DBTechYT 4 года назад
I've actually thought about looking into this. Might make a video on it at some point if I figure something out :)
@mbarela82
@mbarela82 4 года назад
@@DBTechYT that would be great!
@DBTechYT
@DBTechYT 4 года назад
And I've got it sorted. Easier than I thought actually :)
@mbarela82
@mbarela82 4 года назад
Awesome! Do you mind explaining how to set that up?
@janezhitori6203
@janezhitori6203 Год назад
There is no way I can access domainname from my local network, is there any catch for extra port need to be open or something else? Same as you do at 16:47
@DBTechYT
@DBTechYT Год назад
You need to foward ports 80 and 443 from your modem/router to the server running Traefik
@janezhitori6203
@janezhitori6203 Год назад
@@DBTechYT I tried with setting port 80 to external start/end and internal start/end. I did same for 443 and then I get those messages: Since port 80 is used, the Broadband Router WEB server port will be moved to 8080. Same goes for 443 that moves to 4433.. And therefore Im getting Host error from cloudflare.
@DBTechYT
@DBTechYT Год назад
then I would try changing the Cloudflare DNS setting to "DNS Only" instead of "Proxied" and see if that changes anything. If it does, then you can complete your setup and then change the DNS settings back to "Proxied" once you're up and running.
@janezhitori6203
@janezhitori6203 Год назад
@@DBTechYT it seems that ports 80 and 443 are used by my modem and won't allow me to use them. What if I change ports in docker-compose.yml to 81:80 444:443 and do same on modem port forwarding (81/444 external, 80/443 internal)? Or any other suggestion?
@DBTechYT
@DBTechYT Год назад
That might work. This is one of the reasons I switched from using a reverse proxy like Traefik or Nginx Proxy Manager to using CloudFlare Tunnels: No port forwarding required.
@gp2254
@gp2254 9 месяцев назад
Hey DB, Big Fan! Love All your videos! I am a sysadmin who is constantly tinkering in my homelab! Ques for ya > I currently have 2 domains and one of them is presently running nginx with no problems and of course the one caveat there is the use of ports 80:443 :/ I am trying to setup traefik to work alongside my nginx but on my second domain name .. I made some progress in your video and was able to access the traefik dashboard however when I add a record into cloudflare for " your example> monitor" the page fails to load and gives me a 502 error. The SSL was tried on both flexible and strict. Any thoughts on how to get both working? Any help is appreciated! TY
@gp2254
@gp2254 9 месяцев назад
Keep in mind I also have 2 separate networks one of which is my primary and the other is my homelab network which is on its own subnet and runs pfsense and win server 2k19 that gives out my dhcp records... Is it possible that some thing needs to be set in my pfsense virtual router config?
@DBTechYT
@DBTechYT 9 месяцев назад
Thanks for your comment, but i"m not going to be able to help with anything Traefik related. I haven't touched it since around the time I made this video. I'm all in on Cloudflare tunnels now as it's just so much better for my needs.
@gp2254
@gp2254 9 месяцев назад
Thanks for the quick response! I could not agree more I am going to do the same going forward which is to use CF Tunnels which I already have running perfectly and the only reason for Traefik was to test it out and maybe move away from nginx or maybe get both running together if possible with a second domain but I doubt that is possible :) Later DB @@DBTechYT
@draganpavlovic1809
@draganpavlovic1809 4 года назад
Should this auto redirect http -> https? becouse for me it doesn't KEEP GOING with your Video they are very informative! Thanks a ton
@DBTechYT
@DBTechYT 4 года назад
Changing the setting to auto redirect to https should work. Try a different browser. You might have some setting cached in your main browser. I always have to test in Firefox because I do most everything in Chrome.
@northernexplorer01
@northernexplorer01 4 года назад
trying this is OMV4 but im getting command not found when i put in docker-compose up -d, not sure what the issue is? again great video hope i get it to work thanks..
@DBTechYT
@DBTechYT 4 года назад
In order for this to work, you have to have Docker installed.
@northernexplorer01
@northernexplorer01 4 года назад
@@DBTechYT docker is installed, i have containers for plex, jellyfin and such, i can also see in putty my two files i made docker-compose.yml and dynamic.yaml in the traefik dir.
@northernexplorer01
@northernexplorer01 4 года назад
is Docker Compose different then Docker?
@DBTechYT
@DBTechYT 4 года назад
I have no experience with Docker on OMV4, but I found this: github.com/laradock/laradock/issues/12
@northernexplorer01
@northernexplorer01 4 года назад
@@DBTechYT thanks got it all going just waiting on cloudflare to update from porkbun dns change.
@rickydubay8082
@rickydubay8082 4 года назад
Question: after toggling http -> https on CloudFlare's web interface I keep receiving an Error 521. All was fine prior to this change and could access monitor and airsonic fine. I tried adding a CloudFlare certificate to omv5, but doesn't seem to change, might I've added it to the wrong place? Great video, thanks for helping a noob!
@EduardoReyesDPM
@EduardoReyesDPM 4 года назад
you mean after toggling cloudflare from normal dns to proxied
@Dpata08
@Dpata08 4 года назад
Hey Ricky, you must enable "Flexible" under SSL /TLS on Cloudflare site, so it can work without installing Cert on your server.
@rickydubay8082
@rickydubay8082 4 года назад
@@EduardoReyesDPM It was after toggling "Always use HTTPS", I didn't do it upon setup b/c I'm a dumb-dumb
@rickydubay8082
@rickydubay8082 4 года назад
@@Dpata08 You nailed it! One click and all is right with the world, thanks for the help! Now able to access it from LTE
@EduardoReyesDPM
@EduardoReyesDPM 4 года назад
@@Dpata08 omg yes... this i what i was looking for and couldnt figure out.. ty.... did i miss this step in the video bc i dont remember seeing it
@ajugland
@ajugland 3 года назад
"docker-compose up -d" is not pulling anthing. Command not found
@DBTechYT
@DBTechYT 3 года назад
do you have docker installed?
@borschelrh
@borschelrh 4 года назад
Hi, I am getting this: ERROR: Failed to create DNS record 'monitor.borschel.xyz' when I run the cloudflaredns updater container. I am reading on the free Cloudflre accounts we are not permitted to use CNAME and must upgrade to the enterprise version. However, I was able to create them and can ping them okay so I am confused why this isn't working. Any ideas?
@DBTechYT
@DBTechYT 4 года назад
That's weird. I've been using the free version of CloudFlare for YEARS now and have never had an issue creating CNAMEs. I always create my CNAME records on CloudFlare. I don't rely on the apps to do it for me.
@borschelrh
@borschelrh 4 года назад
@@DBTechYT I didn't use any apps (actually wouldn't know how to). From the web site support.cloudflare.com/hc/en-us/articles/360020348832-Understanding-a-CNAME-Setup it says: Overview CNAME setup is available to paid Cloudflare plans at the Business or Enterprise level. So, not certain what that means. I did create the monitor CNAME but for some reason it isn't being seen. Any ideas?
@DBTechYT
@DBTechYT 4 года назад
Oh. I got it. It's on the page you shared: "Be careful not to confuse CNAME setup terminology with CNAME records which are available in the DNS app for all plan types." We're using CNAME records, not a CNAME setup.
@borschelrh
@borschelrh 4 года назад
@@DBTechYT Okay, but I have the subdomains setup correctly using CNAME as you described but am getting the error message which cycles every minute or so. as listed here: ERROR: Failed to create DNS record 'monitor.borschel.xyz
@borschelrh
@borschelrh 4 года назад
Like a dummy I was using the main API token and switched it to the global token and nnow it is working. That was also not clear to me.
@welbeschikbaa
@welbeschikbaa 4 года назад
Do you by accident have hassio running in this setup? Any hints on how to add that to traefik2?
@DBTechYT
@DBTechYT 4 года назад
I don't have HassIO setup on here, but if you want to make it work with Traefik, you need to add the 3 labels to your HassIO container as shown in the other containers in this video. Also make sure to change the network for HassIO to the "web" network that was setup in this video.
@welbeschikbaa
@welbeschikbaa 4 года назад
@@DBTechYT I did exactly that but I don't think that works. Hassio uses another port by default. 8123. Maybe I need to put that somewhere? Traefik just doens't pick it up...
@DBTechYT
@DBTechYT 4 года назад
What version of HassIO are you running on Docker? Can you link it to me?
@welbeschikbaa
@welbeschikbaa 4 года назад
www.home-assistant.io/hassio/installation/ and then (look at the bottomn the supervisor install, I am on a Alpha Latte Panda with linux mint) The final command: curl -sL "--raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh--" | bash -s -- -m qemux86-64 -d myfolder (I have no idea how to use minus s) It is on host. I can't add the web network I see now...
@DBTechYT
@DBTechYT 4 года назад
Here's how I got it to work on my setup: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-B4hpSXBhp8I.html
@MarekPavelka
@MarekPavelka 4 года назад
Hi and thanks for nice tutorial. It's something I've just been looking for, but I got lost right at the begining. When I want to add my domain to Cloudflare, I get the message "marapavelka.eu is not registered domain".
@DBTechYT
@DBTechYT 4 года назад
I just did a search and that domain hasn't been registered. Godaddy says this domain is available: www.godaddy.com/domainsearch/find?domainToCheck=marapavelka.eu
@MarekPavelka
@MarekPavelka 4 года назад
@@DBTechYT Oops, my mistake, I entered the wrong domain. Thanks
@DBTechYT
@DBTechYT 4 года назад
I did it on this video too, just later on. Happens to the best of us! :)
@MarekPavelka
@MarekPavelka 4 года назад
@@DBTechYT With the right domain it already works :) But I can't figure out how to set up TT-RSS and Pi-hole.
@CarlosASalazar
@CarlosASalazar 3 года назад
traefik vs nginx proxy manager?!! ?¿?¿?witch one?
@DBTechYT
@DBTechYT 3 года назад
I prefer NGINX Proxy Manager for ease of use and less setup.
@markclarke4895
@markclarke4895 4 года назад
I've been researching for the past couple days how to use Cloudflare Origin CA certificate on the server with Traefik. I want to use cloudflare's settings "Full (strict)" instead of "Flexible." Would you know how to get this done?
@jaywillis4063
@jaywillis4063 4 года назад
What if you have a dynamic IP from your ISP, how do you set that the IP via Cloudflare? I appreciate the videos.
@jaywillis4063
@jaywillis4063 4 года назад
Please disregard - found in documentation. Thanks!
@OzDeaDMeaT
@OzDeaDMeaT 2 года назад
As far as i can tell, this tutorial does not work with the current cloudflare API and traefik. I just tried it letter for letter and it doesn't work anymore.
@OzDeaDMeaT
@OzDeaDMeaT 2 года назад
Failes at the server every time. Certificate looks ok, but yeah, webpage gives a host error from cloudflare.
@MrKudum
@MrKudum 4 года назад
Hello David ! I tried to reinstall Nextcloud with your video and then modify my configuration to use Traefik and cloudflare instead of DuckDNS (using this video) but I don't manage to make it work... (My Traefik/cloudflare setup is OK as it worked with Filecloud). Could you please help me to set up Nextcloud with traefik ? I will be happy to offer you a nice Ko-fi :)
@DBTechYT
@DBTechYT 4 года назад
I already made a video about how to setup NextCloud
@MrKudum
@MrKudum 4 года назад
@@DBTechYT DB Tech Yes and I did follow it (works fine with Duckdns) then I watched your 2 videos on traefik and tried to modify the setup to make it work with traefik/cloudflare (like you did with airsonic) but didn't succeed. I also tried to make a docker compose from scratch to set up newtcloud with traefik but again, no success. I manage to access the initial page : cloud.mydomain.com but cannot connect the db... Any chance to get help on that ? :)
Далее
Самое Романтичное Видео ❤️
00:16
Send this to an artist… 😉 #shortsart
00:19
Просмотров 5 млн
No more Cloudflare Tunnels for me...
11:56
Просмотров 39 тыс.