Additional Self-Hosted Security with Authelia on NGINX Proxy Manager

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2021
  • In this video we're going to take a look at installing Authelia via Docker and Portainer so that we can add another level of authentication security to other subdomains on our self-hosted server(s).
    REFERENCE MATERIAL:
    Authelia Configs:
    dbte.ch/authelia
    NGINX Proxy Manager
    • Secure Your Domain wit...
    Install CloudFlare SSLs in NGINX Proxy Manager
    • Install Cloudflare SSL...
    /=========================================/
    ✨Find all my social accounts here:
    ✅ dbte.ch/
    ✨Join this channel to get access to perks:
    ✅ / @dbtechyt
    ✨Come chat in Discord:
    ✅ dbte.ch/discord
    ✨Services (Affiliate Links):
    ✅ PrivadoVPN: dbte.ch/privadovpn
    ✅ Digital Ocean: dbte.ch/do
    ✅ Bunny CDN: dbte.ch/bunnycdn
    ✅ Private Internet Access (PIA) VPN: dbte.ch/piavpn
    ✅ Amazon: dbte.ch/amazonaffiliate
    ✨Hardware (Affiliate Links):
    ✅ TinyPilot KVM: dbte.ch/tpkvm
    ✅ LattePanda Delta 432: dbte.ch/dfrobot
    ✅ Lotmaxx SC-10 Shark: dbte.ch/sc10shark
    ✅ EchoGear 10U Rack: dbte.ch/echogear10u
    The hardware in my current home server is:
    ✔ Synology DS1621xs+ (provided by Synology): amzn.to/2ZwTMgl
    ✔ 6x8TB Seagate Exos Enterprise HDDs (provided by Synology): amzn.to/3auLdcb
    ✔ 16GB DDR4 ECC RAM (provided by Synology): amzn.to/3do7avd
    ✔ 2TB NVMe Caching Drive (provided by Sabrent): amzn.to/3dwPCxj
    All amzn.to links are affiliate links.
    /=========================================/
    Remember to leave a like on this video and subscribe if you want to see more!
    /=========================================/
    Like what I do? Want to be generous and help support my channel? Here are some ways to support:
    ✅ Patreon: dbte.ch/patreon
    ✅ PayPal: dbte.ch/paypal
    ✅ Ko-fi: dbte.ch/kofi
    /=========================================/
    Here's my Amazon Influencer Shop Link:
    ✅ dbte.ch/amazonshop
  • НаукаНаука

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

  • @DBTechYT
    @DBTechYT  2 года назад +7

    Be sure to watch this video if the container wont' deploy and you you get errors in your container logs: ruclips.net/video/IupAsK0eanU/видео.html

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

      Hi DB Tech, I follow most of your videos for guidance in deploying my containers. Can you possibly do a video on Authentik? I haven't been able to get it up and running. I've been using Authelia using this video but I'd like to try Authentik.

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

      @@miggywiggy1988 Authentik is way messier than Authelia, only if you need multiple flows switch to Authentik.

  • @afrosheenix
    @afrosheenix 2 года назад +11

    PRO TIP ---- If you're using a Gmail account, before you enter your configuration details at 18:00 go into your Google account settings, then security, then generate an App Password. This ensures that you have a single-use password for this program with it's own unique identifier, and it is not the same as your "normal" email password, and it also won't be challenged the same. It'll break if you don't do it this way with many old fashioned authentication schemes.

  • @philwalker5268
    @philwalker5268 Год назад +3

    I'm very late to this tutorial, as it's only something I've felt the need for recently.
    That said, thanks for another great tutorial (I know I've used at least one of your's before for something else, but I forget which one).
    I could trawl through all of the documentation for Authelia, and figure it out myself *eventually*, but it's always really time consuming.
    Your vids are a huge timesaver, as you condense things down to what we need to know, and you explain it really well; pretty quickly, but step by step and comprehensively.
    Easy to follow, even for beginners in the home server space.
    Bookmarked, and I'll go through this tomorrow (although it'll take some time to get through my 23 container setup).
    Thank you.

  • @florent4668
    @florent4668 Год назад +2

    There is a tabulation before the comment line in "users_database.yml". My authelia container wouldn't start at all, removed the tab that's did the trick. Thank you very nice vid and well explained !

  • @DipanGhosh
    @DipanGhosh 2 года назад +3

    This worked like a charm. Thank you SO MUCH for putting this together. There is very little info on how to set this combo up, but your documentation has proved invaluable.

    • @DBTechYT
      @DBTechYT  2 года назад

      Great to hear!

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

      @@DBTechYT There's actual an official guide now which has a method to simplify the advanced tab. That being said it is not geared towards portainer (more docker compose) and it requires a manual mount of a snippets directory that you add files, other than that it's very simple to implement.

  • @johnpetro6661
    @johnpetro6661 2 года назад +11

    This is gonna be REALLY helpful. Lots of great info here. Thank you so much for putting this together. As always, it was well explained. I definitely feel like I have a somewhat better understanding of what's going on here.

    • @DBTechYT
      @DBTechYT  2 года назад +1

      You are so welcome!

    • @markc7933
      @markc7933 2 года назад

      Right this is going to be a rewatch till I get it. But it’s what I’ve been looking for. This is the best channel to pick this stuff up!

  • @Pickledeggs3000
    @Pickledeggs3000 10 месяцев назад

    Fantastic guide! Thank you so much, helped me get this all running in no time after struggling with other options :)

  • @258JUAN
    @258JUAN 11 месяцев назад +2

    Very helpful. Got me throught and was able to get Authelia up and running on my end. Tutorial still relevant as of July 2023

  • @Jeroenus90
    @Jeroenus90 2 года назад

    This is a great tutorial!! Was looking to set up Authelia with Nginx Proxy Manager for a while but didn't find anything useful until I checked your channel. Great video as always ❤

    • @DBTechYT
      @DBTechYT  2 года назад

      Glad it was helpful!

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

    This video was super helpful! Thank you for putting all of this together. I really appreciate it.

  • @jasonmeehan6080
    @jasonmeehan6080 2 года назад +1

    superb video, I thought setting this up was going to be a nightmare, but you've made it very manageable

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

    Thank you! Very inspiring video! I'll use this auth in my serup. Love your content bro, you are laways amazing. You save me so much time researching

  • @TerenceKearns
    @TerenceKearns 8 месяцев назад

    Well done. Thanks for all your hard work. I won't be implementing this right away but I watched it through just to get an idea of what's involved.

  • @tiagoriserio6334
    @tiagoriserio6334 2 года назад +1

    Thank you very much!! Absloutelly incredible job. I've seen the video twice: once for preparing, the second time for action and it worked flawless!!!

    • @DBTechYT
      @DBTechYT  2 года назад +1

      That's awesome!! I'm glad it was helpful!!

    • @tiagoriserio6334
      @tiagoriserio6334 2 года назад

      @@DBTechYT Any tips on how to fix 403 forbidden? The first two containers I tried had no issues, but then I'm suffering with 403 forbidden after filling authelia. For example: it worked perfectly on Radarr or Bazarr, but there's no way to make it work on sonarr or homer dashboard. Thanks in advance!

  • @Glatze603
    @Glatze603 2 года назад +3

    Thanks for this video about this awesome open source tool. I installiert it a few weeks ago and I love it! Now I have 2fa for every software that I would like to reach from outside my homelab! It‘s really great!

  • @jupiter00009
    @jupiter00009 Месяц назад

    Thank you! This is what I've been looking for for so long.

    • @DBTechYT
      @DBTechYT  Месяц назад +1

      Glad I could help!

  • @whoisvince
    @whoisvince 11 месяцев назад

    Fantastic!! This video was great, worked like a charm

  • @sajeeshnair
    @sajeeshnair 2 года назад

    This is the best Authelia tutorial have come across. All my doubts are absolutely clear. Cheers!

  • @yasaralzakout7691
    @yasaralzakout7691 8 месяцев назад

    I really like the way you explain things. you have a great talent to deliver the message in a simple way, and make everything looks easy. Thank you.

    • @DBTechYT
      @DBTechYT  8 месяцев назад

      I appreciate that!

  • @Rakiga
    @Rakiga 10 месяцев назад

    Easily one of the best videos for setting this up. Even using a different OS (TrueNAS), I was able to set it up without issue. Thanks!

    • @DBTechYT
      @DBTechYT  10 месяцев назад

      Glad it helped!

  • @reneb.6682
    @reneb.6682 Год назад

    respect for all of your hard work and wunderful help to get this running at my side, you made my day. its working fine.

  • @MyAeia
    @MyAeia 9 месяцев назад

    Thank you very much.
    Thanks to your tutorial I finally got Authelia up and running. Very good explanation that could be taken over 1 to 1 so with me without problems

    • @DBTechYT
      @DBTechYT  9 месяцев назад

      Glad it helped!

  • @TanmayPathak22
    @TanmayPathak22 2 года назад

    This was great! Thank you so much!

  • @scottfrancis3601
    @scottfrancis3601 2 года назад

    Best tutorial on RUclips, Thank you I tried other tutorials and they all failed to work for me. Brilliant and really well presented... Subscribed Thank you.

  • @arrogantpublisher
    @arrogantpublisher 2 года назад

    Bloody beautiful work man! Cheers!

    • @DBTechYT
      @DBTechYT  2 года назад

      Thank you! Cheers!

  • @LyuboslavPetrov
    @LyuboslavPetrov Месяц назад

    It was very helpful and I spend today to secure all my services behind authelia and SSL. Thank you so much.

  • @Professional_Human
    @Professional_Human 9 месяцев назад

    Love your guide
    got it working on my homelab thanks to you

  • @Ohmygodzilla
    @Ohmygodzilla 2 года назад

    Thank you so much for this! Great tutorial.

  • @ungeekenmunich
    @ungeekenmunich 2 года назад

    This video has been extremely helpful! Now my apps are finally secured :) Thanks!

  • @SimionChis
    @SimionChis 2 года назад

    I just discovered your channel. I liked, subscribed and this video is bookmarked. Thanks

  • @jakewhitworth5813
    @jakewhitworth5813 2 года назад

    Thanks for this! Well worth the wait got it rolled out this evening and it solved my biggest problem!

    • @DBTechYT
      @DBTechYT  2 года назад +1

      That's awesome!! Glad to hear it!

    • @jakewhitworth5813
      @jakewhitworth5813 2 года назад

      @@DBTechYT being able to reach out for help was really refreshing, do you run a discord server or anything? Its something I'd pay a subscription fee to especially if it meant discussing ideas like this?

    • @DBTechYT
      @DBTechYT  2 года назад

      I've got a Patreon with different levels of access and some of them include Discord benefits: dbte.ch/patreon

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

    Great video! I dumped Traefik when I found NGINX Proxy Manager and this video is perfect for integrating Authelia. Thank you!

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

      Outstanding! Really glad to hear it! If you find my content helpful and would like to get ad-free access to a growing library of content, you can join my Patreon: www.patreon.com/dbtech or my private member site: dbtech.fans

  • @jcdock
    @jcdock 2 года назад

    Amazing video. Very well explained, made it super simple to get this set up. Many thanks

    • @DBTechYT
      @DBTechYT  2 года назад

      Thanks for watching

  • @BobbieERay
    @BobbieERay Год назад +3

    This was very helpful thank you. In regards to the "sessions:" variables @ 00:16:02. You can actually fill in minutes, or hours. You just have to denominate them differently, e.g. "expiration: 5m", or "expiration: 1h", instead of "expiration: 3600"
    And as @glassman3333 has pointed already, changing the name, as shown @ 00:29:43, is obsolete. You're just a changing a variable name that is being referenced in the next line. So all you have to do, is to make sure that it is consistent between the two, but you don't have to adjust it.

  • @omgMBP
    @omgMBP 2 года назад +1

    Fantastic walkthrough. I had commented on this topic on another authelia video of yours, promising I'd come back and review this video on nginx proxy and authelia working together.
    I've had this working on my personal stuff for about 6 months now without issue... but I went through absolute hell getting it going at first because of the limited and/or poor documentation on the topic.
    I'm rather proud to say that my solution was effectively the same as yours - but I could have saved about three days of slamming my head against nginx proxy manager to get it going if I had your video and templates to get me going. Your formatting is better than mine on your templates, so Im going to be going through all subdomains and just use yours.
    This was an excellent video making a fairly advanced topic manageable for a newer power user. Thanks for the great solution and the templates!

    • @DBTechYT
      @DBTechYT  2 года назад +1

      Thank you so much for this! It took me a while to figure out and I wanted to try to explain it in a way that made it easier for others :)

    • @omgMBP
      @omgMBP 2 года назад +1

      @@DBTechYT yeah. This video should be a sticky over at authelia. Seriously. Ps: maybe worth adding a comment pin that this config will fail without adding that new requirement for a secret key in authelia config? Or have you updated the template?
      Edit: ohh. Hahaha I see you already did. Nice!

    • @DBTechYT
      @DBTechYT  2 года назад

      Yep. Even made a follow-up video about it :)

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

    Great video for Nginx Manager users!😃

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

    So many thanks for this awesome tutorial. 😃

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

      Glad it was helpful!

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

    Massiv Video Thanks a lot for this very good video and updated configs!

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

    many many thanks this worked awesome!

  • @renorono
    @renorono 2 месяца назад

    Thank you! This tutorial helped me so much! I've spent countless hours trying to get Authelia running with NPM, with no luck. I've tried so many different variations, trying it with mariadb and whoami etc, following various tutorials. All of it was very hard to understand, and had zero success. This was by far the easiest to follow and most successful for me.
    I did have to make some changes to configuration.yml to get it working properly. I think some of the syntax you've used has changed. Some of it was just deprecated, but in other places, it just didn't work. After reading the logs though and comparing them with the Autherlia documentation, these were easy fixes. Just thought I'd mention it in case you wanted to update the config examples on your website. I learnt a lot from the process though, so these were "good" errors for me.
    Thanks again.

  • @DBTechYT
    @DBTechYT  2 года назад +4

    🎆🎆🎆 Find me on social media or support the channel here: dbte.ch/

  • @WRod1464
    @WRod1464 2 года назад

    great instructions. keep up the good work

  • @glassman3333
    @glassman3333 Год назад +15

    Thank you so much for all your work on this. It was a great video. The one part I was a little confused about was in the section where you made the protected domain conf. After looking at it for quite a while, I believe you can set your "set $upstream_" to whatever name you want, as long as the line below it matches, because we're setting a variable, correct? Also, I found that if you then simply define that variable name to "$forward_scheme://$server:$port;" to finish out the line (like you had it initially), it will always work (instead of putting in the actual server name and port). This is because $server and $port are already defined as the "Forward Hostname / IP*" and "Forward Port" values that we setup in the initial Proxy Host entry.
    I'm really just looking for some clarification, because I set it up this way, and it seems to be working. This is probably what you meant, and I just misunderstood along the way. Again, thank you for all your really hard work. I don't think there's any way I could've set this up successfully without your video.

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

      This should be a pinned comment. Saved time and confusion.

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

      I agree and I was puzzled about this as well. In essence, you're just a changing a variable name that is being referenced in the next line. So all you have to do, is to make sure that it is consistent between the two, but changing the name is obsolete.

  • @bluesquadron593
    @bluesquadron593 2 года назад

    Thank you for the video!

  • @cereal_experiments
    @cereal_experiments 2 года назад +5

    this is great! i would love a part 2 on setting up an ldap backend for the user accounts using something like freeipa or glauth.

    • @IBRACORP
      @IBRACORP 2 года назад

      We already covered this a while back, check it out: ruclips.net/video/kw_pohbKE3Y/видео.html
      We also have the config for FreeIPA/Authelia in our docs: docs.ibracorp.io

    • @neo85271
      @neo85271 2 года назад +1

      @@IBRACORP Your video skips ldap configuration entirely. Did you reply to the wrong person?

  • @laduzi3940
    @laduzi3940 11 месяцев назад

    OMG FINALLY. I GOT IT WORKING FOLLOWING YOU GUYS!!! YOU ARE LEGEND AND A SAINT

  • @iwinger
    @iwinger 7 месяцев назад

    the video is awesome, i'll put it on my joplin note for now

  • @rdvanaltun7668
    @rdvanaltun7668 2 года назад

    Thanks for the good content, I hit subscribe button

    • @DBTechYT
      @DBTechYT  2 года назад +1

      Awesome, thank you!

  • @Weirlive
    @Weirlive 2 года назад

    so happy to hear I'm not the only one that isn't a huge fan of Traefik.. I think NPM is just easier to use. Great video!!!!

    • @DBTechYT
      @DBTechYT  2 года назад +1

      Thanks!! And, yeah, I REALLY prefer NPM over Traefik for my use-case.

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

    Excellent video I was able to get it working without too much trouble.
    btw, I think you should build on this further with another video showing full SSO into some standard applications like Bookstack and Portainer as to show the power of it all working together.

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

      Thanks for the tip!

  •  2 года назад +5

    Great tutorial! I will love to see a second part video setting a yubikey or any sort of 2FA

    • @DBTechYT
      @DBTechYT  2 года назад +2

      Definitely planning on this! :)

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

      @@DBTechYT can you refresh this guide to use caddy v2 instead of nginx please

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

      @@iamrage4753 Thanks for your comment, but I have zero interest in Caddy. for that matter, I don't use Nginx Proxy Manager any longer either.

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

      @@DBTechYT so what do you now use? thanks

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

      I use CloudFlare Tunnels for my remote access. Doesn't require any ports to be open on my network, I can control access to my services based on things like IP address, email address, and more. I don't use single-sign-on, so I've never investigated whether or not CloudFlare Tunnels supports it.

  • @gswhite
    @gswhite 2 года назад +1

    Reallly, really fantastic video, and I am using this configuration now for my sites and containers. I woudl love to see a follow (Part 2) showing 2FA and DUO Push?

  • @rsdosev
    @rsdosev 2 года назад

    Hi there! Great video! I have a question for you. Is there a way to disable all published ports for the secured containers and let them be accessible only from authelia, and not from the other local hosts in the local network?

  • @N0AGI
    @N0AGI 2 года назад

    excellent content - thanks for sharing

    • @DBTechYT
      @DBTechYT  2 года назад

      Much appreciated!

  • @anthonyburning8603
    @anthonyburning8603 8 месяцев назад

    THANKS !

  • @wawefr
    @wawefr Год назад +2

    Hi very good job, much appreciate. I'm using nginx + Cloudflare as you explained in another video, but the integration with Authelia isn't working. Authelia works on its own, but the redirection system in the 'advanced' settings isn't functioning. I read that I also need to create redirect transformation rules in Cloudflare, but it's difficult for me. If you have any ideas, I'd appreciate it. Thanks again for your help

  • @kras_mazov
    @kras_mazov 2 года назад +2

    You can use docker container names instead of ip's in nginx proxy manager, just connect your containers to a network with user specified subnet.

  • @ozzeedaboss
    @ozzeedaboss 2 года назад

    Awesome tutorial thank you! One bit that I cannot overcome is finding the configuration.yml file after deploying the Authelia stack. I know it may be a stupid issue but I am a newbie and for the life of me I simply cannot go further with the setup. On your video you ssh to your server and I get that, but how do I find this configuration.yml file in Docker Desktop (Windows 11)? Do I need a WSL distro installed as well? In the docker-compose script I have the mount location exactly as in your video but when I go there the folder, it is empty (!) Any help would be greatly appreciated :)

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

    very good job, thanks for your tech share!😃

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

    How to get Authelia to work with Nextcloud or Vaultwarden when the apps need to sync on various platforms or browser extensions?

  • @ngriz7
    @ngriz7 2 года назад

    Hi dude great video! I want to ask a question, is it possible to set up a subdomain which is on another server that hasn't nginx proxy manager?

  • @ajschot
    @ajschot 2 года назад

    in this way it does not matter which ip adress you fill in to forward to in Proxy manager because when i change it it always go to what filled in in the custom config right

  • @larsskage5584
    @larsskage5584 2 года назад +1

    This is really helpful! Does this setup prevent direct access via the ip and port, while on the internal nw, or is that handled separately?

    • @DBTechYT
      @DBTechYT  2 года назад

      You can still access locally without Authelia. This is just a layer of protection when you're accessing from the internet

  • @GSGWillSmith
    @GSGWillSmith 2 года назад

    Thanks for your tutorial.
    In the "protected-domain-conf" you have set "set_real_ip_from 192.168.1.0/16; #make sure this matches your network setup" at the very bottom. Shouldn't the /16 be /24 as in the authelia-conf? I kept getting the error "low address bits of 192.168.178.0/16 are meaningless", so I changed it to /24 and the error disappeared.

  • @alotalot94
    @alotalot94 2 года назад +1

    Great Video ! Thanks !
    I also saw your video about Nginx + Fail2ban + Cloudflare but had too much ban with the filter regex npm - docker (just browsing my containers with a VPN makes me banned whereas I don't do anything suspicious).
    So i wanted to add an extra layer of security to my server with Authelia, but the question is : is it possible to log in to Nextcloud or Bitwarden through their phone app (or add on apps on firefox) with authelia enabled ???
    Thanks for your answer and thanks again for the video !

    • @user-cu7us4vj1j
      @user-cu7us4vj1j 2 года назад

      Hi! I have the same question ⁉️ Did you figured out an answer?

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

    Can I use NGINX through a cloudflare tunnel and use authelia? I am removing Ubunu server and I will use proxmox.

  • @Henkie0011
    @Henkie0011 2 года назад

    Thanks for the explanation I've got it working on one subdomain. So lets see if we can two factor authentication running also, because the we have the best security for now.

    • @DBTechYT
      @DBTechYT  2 года назад +1

      Fantastic! Definitely going to look at adding an authenticator app or hardware key to the setup soon!

  • @Happypillz
    @Happypillz 2 года назад

    How do you create server by ip forward instead of container?

  • @michaell7511
    @michaell7511 2 года назад +4

    Great tutorial as always.
    Question and a pointer:
    1. Does this work on Raspberry pi as it throws error on it?
    2. You omitted the need to add restart: unless-stopped (or always) on the docker compose else if the docker host restarts, Authelia container wouldn't restart automatically and that means all hosted apps will become inaccessible/unreachable

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

      Works on Rpi for me. Except for different issues I faced (posted in my comment earlier today).

  • @RobKraut
    @RobKraut 3 месяца назад

    Thanks so much for posting this! I’ve been searching for a while for a more succinct video that just gets through the basics. Yours is the first I’ve found that checks all the boxes I was looking for.
    But since this is a couple years old already, hoping you even see this comment, is there any aspect of this that has changed since then that could bork my set up? I’m thinking about giving this a shot tomorrow.

    • @DBTechYT
      @DBTechYT  3 месяца назад +1

      Thanks. This video was a pain to shoot, so I'm glad it's helpful. I haven't used this setup since a couple of months after I shot it. I use Cloudflare Tunnels for all my remote access needs.

    • @RobKraut
      @RobKraut 3 месяца назад

      @@DBTechYT yeah. I’ve been hearing about those as well. Not entirely sure what they are, but if you use them, do you not need Authelia at all? The single sign on with 2FA option is what I’ve been after since right now I just have reverse proxies set up through my own domain and using my NAS as the web server, using each app’s auth options (a pain). The goal is to be a little more portable with my setup, and not tied to Synology’s infrastructure as much. Also, just trying to learn more about this. I caught the self-hosting bug instead of COVID during the pandemic. 😜

    • @RobKraut
      @RobKraut 2 месяца назад

      @@DBTechYT FYI, apparently they made changes to the Authelia config a few weeks ago. Your template files are unfortunately out of date now. I'm working on changing my setup to match the new structure, and if I ever get t figured out, I will share it with you to update your templates, if you'd like. (you might be faster at it than me to be honest... I'm still trying to get it up and running in the first place)

  • @Animizio2024
    @Animizio2024 10 месяцев назад

    Thank you and everything works well. So just a short question: Why do I need to match the upstream for the container name? It also works if i just type a random name inside the config. Would be cool to understand it :)

    • @DBTechYT
      @DBTechYT  10 месяцев назад +1

      I never actually used authelia for any time. I leaned just enough about it to show people how to install it and do the basics. I encourage you to check out their online resources for more information

    • @Animizio2024
      @Animizio2024 10 месяцев назад

      @@DBTechYT thank you

  • @IbrahimBachir
    @IbrahimBachir 2 года назад

    Great tutorial, man. Just one question. It's returning a 403 Forbidden error after Authelia authentication. I don't know if you have a clue about what can be the problem. I have been following your tutorial entirely. Thanks in advance.

  • @clarke6808
    @clarke6808 6 месяцев назад

    Aweome..

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

    i think this is like using HTTP basic auth on nginx, let's say if i want SSO to my private gitlab, how to achieve that? because i'm pretty sure after entering my user pass on the authelia, the gitlab login page still prompt me to enter the username and password

  • @macihun93
    @macihun93 2 месяца назад

    broadly speaking, would this be a more secure approach than using cloudflare zero trust tunnels and their built in auth apps?

    • @DBTechYT
      @DBTechYT  2 месяца назад

      There are a lot of things that can weigh on both sides of the answer here. I used authelia for a while. Then I found Cloudflare tunnels. With tunnels, there is no port forwarding and you've got world-class DDOS protection and security

  • @rivetthelombax7009
    @rivetthelombax7009 7 месяцев назад

    What do i change in the nginx proxy configs for non docker-container items? That was not explained in the video despite being mentioned. for example I have a proxy set up for my servers cockpit instance, which is not run on docker. what would I change for that?

    • @DBTechYT
      @DBTechYT  7 месяцев назад

      I never pointed authelia to anything other than docker-related containers, but I would assume the process would be the same. I can't validate that, though since I only used this for about a month before getting tired of dealing with it and moving on to a different solution entirely.

    • @rivetthelombax7009
      @rivetthelombax7009 7 месяцев назад

      @@DBTechYT Understandable! been wracking my brain trying to figure out which section to change to get it to work but get SSL errors pretty quickly. thankfully its an easy fix, just remove the config from the advanced tab to restore it. Guess ill have o check what i can find out elsewhere. good to know!

  • @ShofiqulYT
    @ShofiqulYT 2 года назад

    Thanks a lot

    • @DBTechYT
      @DBTechYT  2 года назад +1

      Thanks for watching!

  • @bootifulghost8624
    @bootifulghost8624 2 года назад +1

    Thanks a bunch for this Tutorial David. Been waiting for such a Tutorial. Going to try it this coming weekend.
    Now all I wonder is, can I also make Authelia authenticate for containers that already include authentication, like bookstack?

    • @DBTechYT
      @DBTechYT  2 года назад +1

      I'm not sure if that's possible, but it would be cool if it did. I think you would need something like LDAP setup for all of the involved containers, but I might be mistaken on that.

    • @bootifulghost8624
      @bootifulghost8624 2 года назад +1

      @@DBTechYT Yeah this would solve a big issue I currently have, as we're running multiple services with authentication and for every service it's a new login... thanks I'll see if I can find something with ldap

  • @jokurinopoloski
    @jokurinopoloski 2 года назад

    Have you ever gotten Remote Desktop Gateway to work with reverse proxy manager?

  • @Armetron
    @Armetron 2 месяца назад

    excellent video. If your using a web app that comes with it's own login configuration (jellyfin) is it possible to get Authelia to log in for you?

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

    Hello, thanks for all your content, it's very helpful and well explained.
    I don't know if I'm the only one, but the port 587 for the smtp configuration of gmail doesn't work, I've to use the port 465.
    And if you have a firewall on your system, don't forget to open the port 9091 ;)

  • @fragoulisnaval
    @fragoulisnaval 2 года назад +1

    Why use Authelia instead of setting up the access lists in NginxProxyManager? Why we need to run an additional container to add that extra layer of security? Is there something more to gain?

    • @DBTechYT
      @DBTechYT  2 года назад +3

      Honestly I've had mixed results with access lists on NPM. Authelia also allows you to add people to groups and then assign access to different applications based on those groups. Authelia also has a feature that will block people from accessing your server if they use incorrect credentials too many times. Again, this tutorial/application may not be for everyone, but it's been requested for more than a year in my comments section and I thought it was time to make a video about it :)

    • @fragoulisnaval
      @fragoulisnaval 2 года назад +1

      ​@@DBTechYT You are right, blocking people out cannot be done using access lists. I will try setting this up over weekend if I find some spare time... Thanks again for this video!

  • @ajschot
    @ajschot 2 года назад

    i tried to add 2nd verification but it is not possible i can not get it to work...
    EDIt: mistake in the auth proxy host

  • @okanerdem
    @okanerdem 2 года назад +1

    Just a small question, we already can a password with access list on the nginx proxy manager, what's different? Why we should authelia for password authentication? We can do it basicy on the nginx proxy with access list username/password

    • @FanouLive
      @FanouLive 2 года назад +1

      Indeed, something similar

    • @okanerdem
      @okanerdem 2 года назад

      @@FanouLive then we can use nginix proxy access list

    • @FanouLive
      @FanouLive 2 года назад +1

      @@okanerdem Yes, but it's a really basic authentication form, and there is less available configuration options like explained @DB Tech in another comment

  • @michaeldooley231
    @michaeldooley231 29 дней назад

    Hello, is there a way to make this work for NGINX PM Admin Panel? I have tried before but ended up messing it up and loosing access to everything.

    • @DBTechYT
      @DBTechYT  29 дней назад

      Point the Ip address to you server's IP. Point the port to your NPM port. Make sure you have ports 80 and 443 forwarded from your modem/router to your server with NPM on it.

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

    First, I love all of your videos, I would not be here now if they did not work. I got everything working. Thank you. BUT, for the life of me, I can not get any of the authelia enabled NGINX hosts to work for devices on other ip's!

  • @Asbasnowe
    @Asbasnowe 9 месяцев назад

    Hey dbtech, thx for the tutorial! I cant access your domain. Where can i find the authelia configuration files?

  • @liamriley2100
    @liamriley2100 2 года назад +1

    Thanks for the tutorial! Everything worked great, except now I'm trying to make a LAN bypass rule, which doesn't work for some reason. I feel like this is probably down to me not setting the correct values in the nginx proxy manager config for the protected domain, specifcally this section:
    set_real_ip_from 192.168.1.0/16; #make sure this matches your network setup
    real_ip_header CF-Connecting-IP;
    real_ip_recursive on;
    If my servers are on the 192.168.5.0/24 subnet and my home devices are on the 192.168.10.0/24 subnet, what would be the correct value for the "set_real_ip_from" directive? Also, if not using Cloudflare proxy, can I remove the "real_ip_header CF-Connecting-IP;" line?

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

    Great video, everything works great up until added the CONF to the proxies. I use the code and change it as suggested, but as soon as I do, it sets the proxy to offline. Not sure what I am missing here?

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

      I know the solution! Whoaa after 4 hours of searching...
      In CONF for proxied host which should be protected, it isnt't allowed to have a character like a minus. NPM don't realise that the chars after the minus belongs to the variable. Also you don't need to set the dcontainer_name to the $upstream var, because it set by "Forward Hostname / IP*" and "Forward Port" in the previous step.
      Wrong:
      location / {
      set $upstream_uptime-kuma $forward_scheme://$server:$port;
      proxy_pass $upstream_uptime-kuma;
      Right:
      location / {
      set $upstream $forward_scheme://$server:$port;
      proxy_pass $upstream;
      Thanks at @glassman3333 for your comment, it helps me a lot! :)

    • @ncstr5842
      @ncstr5842 8 месяцев назад

      @@techsolo121 you / glassman3333 are goats, it finally worked! tysm

  • @Prime_Tecnologia_Automacao
    @Prime_Tecnologia_Automacao 18 дней назад

    Excellent video, I put my Authelia to the test with it, but to make it part of my structure I need to resolve some situations. I can't get the NOVNC CONSOLE inside PROXMOX to work with NPM + Authelia... it always says connection. Has anyone found a solution they can share?

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

    Great video, thanks so much. For some reason setting domain in nginx does not work for me. I could access authelia via locval iip and port but not hte domain. I also have about 5 other apps that I access with domain creating on cloudflare and proxy manager. The only one I can not get to work is authelia.

  • @yohannn2635
    @yohannn2635 2 года назад

    Great video ! thanks for the tuto, I'm having only one issue at the end, after the redirection of auth to my apps I'm getting 403 forbidden openresty, any idea ?

    • @DBTechYT
      @DBTechYT  2 года назад

      Are you trying to access more than one root domain on your Authelia setup?

  • @alanstedman6716
    @alanstedman6716 2 года назад

    Another great tutorial - thank you

    • @DBTechYT
      @DBTechYT  2 года назад

      Glad it was helpful!

  • @MrSnyaify
    @MrSnyaify 2 года назад +3

    Thank you so much for listening your subscribers:) btw, it’s much easier with traefik an you are wrong. With traefik and file config it’s very easy to config services on other VMs. (Just 2 blocks in config that defines router and service behind it) I have 1 file with all configuration, editing it with file browser or VScode, and you don’t need to use docker labels at all, (dam I hate this labels and always recreate containers when I’m screwed with it)

    • @AntonStolov
      @AntonStolov 2 года назад +1

      On the contrary, I really like the label format.

    • @DBTechYT
      @DBTechYT  2 года назад

      This is good info! Thanks!

    • @MrSnyaify
      @MrSnyaify 2 года назад +1

      @@DBTechYT another + to traefik is backup, just copy 1 config from traefik container and place it anywhere where you want to reproduce your environment. This is so by the way. And one more thing, traefik middlwares + chains, work like a charm. I don't like syntax of Ngnix when you need something to tune... as for me it's hard :(

    • @AntonStolov
      @AntonStolov 2 года назад

      @@MrSnyaifythats right, 'bout backup of your proxy stuff with traefik it's super easy

  • @pgarcezneves
    @pgarcezneves 7 дней назад

    Good afternoon...
    I've followed the tutorial step by step (several times actually) and i always get the same result. The message is "there was an issue retrieving the current user state". Any ideas about what can i do? Thanks.

    • @DBTechYT
      @DBTechYT  7 дней назад

      No idea. I had this set up long enough to get through the setup process and verify it works to make the video. Switched to Cloudflare Tunnels and their security shortly thereafter

    • @pgarcezneves
      @pgarcezneves 6 дней назад

      @@DBTechYT Thank you for your reply! Greetings from Portugal!

  • @micmadorama
    @micmadorama 2 года назад

    thx!

    • @DBTechYT
      @DBTechYT  2 года назад

      Thanks for watching!!

  • @evertythingtechrelated9715
    @evertythingtechrelated9715 2 года назад

    Wish the username could random then setup 2FA to display the entered username on duo app. That way I can see who's trying to get access and accept/deny.

  • @ChrisRider
    @ChrisRider 9 месяцев назад

    Your video helped me out. I was watching other tutorials that were overly complicated for my use. Now, I would like to figure out if I can use single-sign on and not have to login. As an example, Jellyseer has its own user/password. Right now, I get Authelia asking me a password - then get Jellyseer's.

  • @scottibyte
    @scottibyte 2 года назад

    So, I have watched every video online and read every page of the docs. I carefully created my folders, user database, etc and I get the error: level=error msg="Unable to find database file: /home/scott/authelia/config/users_database.yml" However that is exactly the name of the file and I even set 777 permissions after nothing else worked. Any ideas?

    • @DBTechYT
      @DBTechYT  2 года назад

      to be honest, my Authelia crashed after an update recently and I've run into similar issues so I'm not entirely sure at this point.

    • @scottibyte
      @scottibyte 2 года назад

      @@DBTechYT I guess it is always good when we content providers can't figure it out either.

    • @DBTechYT
      @DBTechYT  2 года назад

      I'll have to dig into it later when I've got some time. I just noticed it yesterday when I tried to access on of my internal services on a domain. Thinking of scrapping the whole thing and using a VPN to access all of it...

    • @scottibyte
      @scottibyte 2 года назад

      @@DBTechYT well, if you want to tag up, I will be glad to show you what I discovered. I think I am close to figuring this out. Check out my channel sometime. I do a lot of infrastructure.

    • @evertythingtechrelated9715
      @evertythingtechrelated9715 2 года назад

      you should define the location on the container side not host....so its just "/config/users_database.yml"

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

    Could you take a look at Ory Katros? Thank you!