SWAG: NGINX Reverse Proxy with Docker, Mods & Authelia

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 100

  • @IBRACORP
    @IBRACORP  Před 2 lety +12

    Hope you guys enjoyed todays video! Anything you'd like to see in a future episode? Let us know here or on Discord! discord.gg/VWAG7rZ 🙂

  • @walterrossi6676
    @walterrossi6676 Před 2 lety +21

    Ok, you have convinced me. I'll deploy Nginx Proxy Manager.

  • @AwesomeOpenSource
    @AwesomeOpenSource Před 2 lety +8

    Great Video! An Absolutely terrific looking application with SWAG as well. I feel like I'm too much of a control freak for all of the automated stuff, but still really great even if you don't use all of that.

    • @IBRACORP
      @IBRACORP  Před 2 lety +3

      Nothing wrong with being a control freak when it comes to this topic mate!
      But at least it's optional

  • @AlexChama
    @AlexChama Před rokem

    This plus Tailscale is a massive life improvement without opening any ports on my router and my VPN is safeguarded by a company that's been in that business for a long time with a reputation to lose rather than myself who may not be up to snuff at all times.
    Major win. Hello photo and media library on the go, it's a pleasure to have you!

  • @seantellsit1431
    @seantellsit1431 Před 2 lety +1

    BTW, Thank you for this. I constantly have to try to remember how to set up swag on my unraid server for different things and this is one of the few videos which covers everything.

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      That’s great to hear! Thanks so much for the feedback. Appreciate you watching our content!! I’ll be honest, I also watch back on the videos when setting up a new server 😂

  • @pertang630
    @pertang630 Před 2 lety +2

    Good timing, I'm just just looking for a reverse proxy for my newly built Unraid box. I'll check this out tomorrow

  • @strongyp
    @strongyp Před 2 lety +8

    at 21:56 you uncommented a comment that said "enable for authelia" this will have broken your configuration because it meant the line underneath which was already uncommented.
    # enable for Authelia
    include /config/nginx/authelia-server.conf; #

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      Yeah apologies there, it was missed in editing

  • @tlain-og
    @tlain-og Před 2 lety +10

    I followed this guide and got almost everything to work except the authelia login prompt never appeared for me I got straight to my container application. Had to make one small change to the configuration.yml in your github file it says path: "" under the server: section, had to change this to path: "authelia"
    But still a well put together guide.

  • @savageaus81
    @savageaus81 Před 2 lety +9

    Will this work with an existing cloudflare Argo tunnel? Or do I need to modify more?

  • @majiachen101
    @majiachen101 Před rokem +3

    for authelia to correctly redirect you to the authelia login, you need to enable authelia by having
    path: "authelia"
    in the configuration.yaml, which is also in the ibracorp swag documentation.

    • @jonathandoe7490
      @jonathandoe7490 Před rokem

      Thank you for this, i missed this step and it was the cause of 9 straight hours down the drain. fixed now.

  • @Strenalis
    @Strenalis Před 2 lety +8

    I don't think it was mentioned in this video, but I was stuck with a browser infinite redirect issue for all the subdomains I added via auto-proxy mod until I went into my Cloudflare account and under SSL/TLS settings for my domain and changed the encryption mode from Flexible to Full.
    Just putting this here in case anyone else runs into the same problem. :)

    • @Hertizch
      @Hertizch Před rokem +1

      Hero! :)

    • @CauldBorn
      @CauldBorn Před rokem

      Thank you so much! Had exactly the same problem and this instantly solved it for me!

    • @Shipchi89
      @Shipchi89 Před 8 měsíci

      Thanks! This fixed my problem!!!

    • @planeetpaul
      @planeetpaul Před 8 měsíci

      This saved me hours of troubleshooting. thanks man. edit: BTW this issue also occurs with the default swag configuration without auto-proxy mod. Setting the SSL/TLS encryption mode to full seems necessary when using a self-signed certificate.

  • @raynal2
    @raynal2 Před měsícem

    hello. thx for your video !

  • @stefanlaterra5797
    @stefanlaterra5797 Před 2 lety +1

    Heya, I can't seem to find the video that shows the Let's encrypt certificate part? I am unable to add the certs to Nginx without adding the Let's encrypt first.

  • @fancyhandlegoeshere
    @fancyhandlegoeshere Před rokem +2

    Some time ago, I migrated from LetsEncrypt to Nginx Proxy Manager, mainly due to the fact that (at the time), LE used SAN certs and I didn't want all my fqdns lumped together in one cert.
    So I moved to NPM and I've been pretty happy with it but it seems to me like documentation for it is essentially non-existent. If it's out there, I've been unable to find it.
    So, today I got to thinking about moving to SWAG but I wanted to ask the question before I even start - does SWAG utilize SAN certs, lumping all FQDNs into one cert, or does it utilize unique certs for each FQDN similar to what NPM does?
    I'd like to get clarification on that prior to putting any effort into a migration. Thanks in advance.

    • @snowwsquire
      @snowwsquire Před rokem

      what’s the reason you don’t like san certs?

    • @fancyhandlegoeshere
      @fancyhandlegoeshere Před rokem

      @@snowwsquire if I’m hosting multiple domains I don’t want them lumped together, for a variety of reasons.

  • @SleepySack
    @SleepySack Před 2 lety +1

    Can this method be used to enable remote connection to Home Assistant docker in Unraid? Or are there any suggestions for alternative methods (such as Nginx Proxy Manager and DuckDNS)?

  • @k31myx
    @k31myx Před rokem

    Hi, IBRACORP, I am really impressed with all those tutorials you guys have. since I found this channel I have been addicted to it. I can notice that all your tutorial has been done on unraid, is there any specific motive? Can you do the equivalent for Truenas?

  • @horrorshow21
    @horrorshow21 Před 2 lety +3

    Are there any additional steps needed that are not in this video to switch from Nginx Proxy Manager to SWAG or is it as simple as setting this up and just turning off NPM?

    • @strongyp
      @strongyp Před 2 lety +3

      99% of the included proxy configuration files don't need editing and will work out of the box as long as they are enabled

  • @David-bq2qh
    @David-bq2qh Před 2 lety +1

    Hello so I have a question I'm on a provider via cgnat and I can use tailscale etc in a vm without any problems directly on unraid it has issues with ipv6. But my main thing is I'm trying to figure out how to use tailscale or zerotier and use the ip addresses with swag or another proxy solution can you point me the right direction. Thank you!

  • @pierrecastanets1974
    @pierrecastanets1974 Před 2 lety +1

    I followed closely and I am unable to connect. Auto proxy doesn't work for me. I had to manually add the configs but it works now.

    • @IBRACORP
      @IBRACORP  Před 2 lety

      Glad you got it working! Have you had a look at our Traefik guide? Another alternative to try out.

  • @onetick3724
    @onetick3724 Před 2 lety +1

    Thanks for this very interesting video! However I have an issue with the backup path created in the container... not able to access it from the gui of duplicacy... any idea of the problem ? thx

  • @smaiderman2
    @smaiderman2 Před rokem

    Hello. Thanks for the video!
    One question. If I'm following this tutorial, at 9.42, just after creating the wildcard cname, should i be able to access my server from the internet? typing my domain, should take me to the webui? I only get an "ERR_CONNECTION_TIMED_OUT" message in chrome

  • @javinpaoli
    @javinpaoli Před 2 lety +1

    Followed guide to a T and still not able to get it to work :(
    Edit: Ended up just going with NGINXProxyManager. Seems to be fine with my use case. Love the videos IBRACORP

    • @IBRACORP
      @IBRACORP  Před 2 lety +2

      Hi Jay, thank you for watching!

  • @Orishas2008
    @Orishas2008 Před 2 lety +1

    Thanks for the great tutorial. I only have one question, is there also the possibility to use "SSL Full (Strict) with SWAG? Can't find anything in the documentation.

  • @CorneliusCornbread
    @CorneliusCornbread Před rokem

    your ibracorp website seems to be down? Nothing is showing up when loading the webpage

  • @kevinhughes9801
    @kevinhughes9801 Před 2 lety +1

    Thanks for sharing

  • @cpthook26
    @cpthook26 Před rokem

    Hello. Great video. Are you able to use the Auto-Proxy docker mod AND add preconfigured Nginx Templates for applications not on the custom docker network? I have containers on a 2nd unraid server on the same LAN. Thanks.

  • @dannygohks
    @dannygohks Před 2 lety +1

    Do I need to open any firewall port or port forwarding for SWAG to work?

    • @IBRACORP
      @IBRACORP  Před 2 lety +2

      Yes. Unless you use our CloudFlare Tunnel video which lets have all ports closed

    • @dannygohks
      @dannygohks Před 2 lety +1

      @@IBRACORP can u list out the ports?

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      80 and 443. (HTTP AND HTTPS)

  • @darkaurori
    @darkaurori Před rokem

    Why does your SWAG docker have an icon to load a UI? SWAG has a UI?

  • @patricklayton9748
    @patricklayton9748 Před 11 měsíci

    is there some unraid setting we need to change? I can not connect to host

  • @evanmarshall9498
    @evanmarshall9498 Před 2 lety

    Did you cancel the AUTO RELOAD WATCHLIST variable or actually add it?

  • @anthonybrownbill5677
    @anthonybrownbill5677 Před rokem

    I pretty much followed this video to the T and am having some issues with getting Nextcloud running using this how could I find some assistance with this?

  • @mitchross2852
    @mitchross2852 Před 2 lety +1

    Whats a good use case for Cloudflare real IP? Im trying to decide if I need it or not.

    • @IBRACORP
      @IBRACORP  Před 2 lety +2

      For example reading a user's real IP for fail2ban is one

  • @alexsinbb
    @alexsinbb Před 2 lety +1

    When you proxy A and C names on cloudflare, how do you manage NAT reflection in pfsense such that LAN clients can directly communicate to swag?

    • @IBRACORP
      @IBRACORP  Před 2 lety +2

      Not sure on this one mate but I'm sure some community members in our Discord will be able to answer it for you!

  • @Deses
    @Deses Před 11 měsíci

    I did everything in this video and when I try to connect to my subdomain I just get a "Welcome to your SWAG instance".

    • @Deses
      @Deses Před 11 měsíci

      For some reason the docker mod `swag-auto-proxy` didn't get saved. Now I'm getting a 502 error. Fun times all around.

  • @siowly
    @siowly Před 2 lety +1

    Pls do a tutorial for ebooks

  • @juan11perez
    @juan11perez Před 2 lety +4

    Thank you for this tutorial. Docker mod functionality and fail2ban make swag very interesting. Perhaps a follow up video could be fail2ban, I tried following the scarce documentation and got it to work but it bans the docker network as opposed to the client real ip. I installed the "real ip" mod and it still doesnt show it. The other problem is that fail2ban is inside the container and whilst it creates a ban it actually doesnt close anything.

  • @fbifido2
    @fbifido2 Před 2 lety +3

    not once did you show the result of any of the commands or modification.

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      Are you asking me to? The result has no impact on the method shown or the instructions provided.

  • @transparency1
    @transparency1 Před rokem

    I assume this video is out of date? I do not see anything located past the /mnt/ folder when I go to edit anything in the terminal. There is no cloudflare.ini file. Having difficulty putting my Cloudflare API in.

    • @IBRACORP
      @IBRACORP  Před rokem +1

      It wherever you have the folder mapped in your docker container template for CloudFlare. So you'll need to check

  • @ikkuranus
    @ikkuranus Před 2 lety +1

    I prefer the old community applications as this one requires an additional click to install something for no reason.

  • @gemorgan99
    @gemorgan99 Před 2 lety

    Hey Question: Why would having dockersocket be more secure than giving swag access to the docker socket? Doesn't dockersocket need access too, thus having the same security risk? THX!

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      It’s removing a layer of access to the docker socket. Instead of giving a publicly accessible application full access to the docker socket, you’re giving a secure app that has one job in the backend access to the proxy. That apps job is to give limited access for other apps to the docker socket. So any publicly facing apps are only able to read the information required instead of being able to spin up malicious containers with root access to everything in your server for example. The only way to access the docker socket proxy if set up correctly is via the dockers secure internal network and so you have added a layer of security

  • @chipped
    @chipped Před rokem +1

    It did not work for me, I followed the guide perfectly. I was hoping to automate things but with no web interface for SWAG I found it actually takes more of my time as troubleshooting requires many extra steps. I will just go back to NPM and setup things manually as before.
    Thank you for making a guide anyway, I hope it helps somebody else.

    • @robcrawford6083
      @robcrawford6083 Před rokem

      agree, there is a lot of missing information in this tutorial.

  • @techchannle4247
    @techchannle4247 Před 2 lety +2

    Why do they always reuse acronyms lol
    I thought swag was just the API testing tool
    And NPM was for node package manager
    And now there's 2 let's encrypts at least they changed it to something more distinguished

    • @strongyp
      @strongyp Před 2 lety +1

      the swag container was originally called letsencrypt (because it included letsencrypt and nginx in an easy to use container), swag stands for Secure Web Application Gateway, npm in this case means Nginx Proxy Manager

  • @roderickvanrhyn2073
    @roderickvanrhyn2073 Před 2 lety

    Showing both NGINX proxy manager and swag both running at same time How does one do this? see 11:58 on video

  • @fostinfang4214
    @fostinfang4214 Před 2 lety

    very helpful! and i also want to know how to set up swag with IPV6? is there anyone know hot to do it? i creat a custom network,but it doesn't have IPV6

  • @Heavenborn
    @Heavenborn Před 2 lety

    After making the custom proxy in swag, whenever I switch swag to the custom proxy and try to access my server, i get a webpage that says "website redirected you too many times".

  • @jean-sebastienfrenette5169

    Hello, using auto proxy, is there a way to use subfolders instead of subdomain?
    Thanks!

    • @IBRACORP
      @IBRACORP  Před 2 lety

      Not sure on that one, head over to our discord and you will be able to ask the developers yourself.

  • @bluesquadron593
    @bluesquadron593 Před 2 lety +1

    Much appreciated. Should I ditch traefik? 🤔

  • @benbou
    @benbou Před 2 lety +2

    Great video! Is it possible to use an origin certificate with swag?

    • @IBRACORP
      @IBRACORP  Před 2 lety

      Yes! It is

    • @benbou
      @benbou Před 2 lety

      @@IBRACORP With such a short answer, can we expect a follow up video anytime soon? :)

    • @niz180sx
      @niz180sx Před 2 lety

      @@IBRACORP I'd love a video on how to setup the Cloudflare origin certificate with SWAG too. Plus content with how to setup Fail2Ban with SWAG would be an awesome bonus. Thanks heaps for the great content. This is coming from a fellow Aussie currently still stuck overseas...

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      No problem mate we'll check it out, hope you can come home safe soon mate ✌️

    • @MegaDiscolover
      @MegaDiscolover Před 2 lety

      SIGN! Would be a pleasure to see this... Thinking to move from NPM to Swag

  • @Movies4118
    @Movies4118 Před 2 lety +1

    Swag is nice. But it sucks when updates to the container break your existing app specific proxy.confs. I finally got tried of it and switched to NPM. Sure, Swag does give you more granular control over configuration. But its a PITA having to deal with template updates.

    • @IBRACORP
      @IBRACORP  Před 2 lety +1

      Good feedback thanks Nirav!

  • @AceBoy2099
    @AceBoy2099 Před 2 lety

    I don't know if if this will help me with what I'm trying to do, but I think I'm gonna do just about everything in this video.

    • @IBRACORP
      @IBRACORP  Před 2 lety

      Always a good start! 😎

    • @AceBoy2099
      @AceBoy2099 Před 2 lety

      Would appreciate a duckdns version just in case....
      How would this work with containers being passed through a seperate vpn container (sonarr, radarr, etc theough nordvpn container for example)? At all or not??
      I got it working with my delugevpn container, but question, how would the auto-proxy work? 1 address for all containers or would I have to still make up a different address per container? I'm working the El cheapo method of just duckdns and no payed services.
      P.s. you didn't show how to test the address/proxy to make sure it works and how to navigate multiple dockers with the auto setup enabled.

    • @AceBoy2099
      @AceBoy2099 Před 2 lety

      Approx 5:00 mark question ( custom docker network question), how would I do this in the case of sonarr, radarr, etc while tunneling them through a nordvpn docker? Do I just add them all to that docker network? How do you tell the dockers to use the vpn since the --net something isn't there with the network set to something other than "none".

  • @worshipkeyspack1735
    @worshipkeyspack1735 Před 2 lety

    Hi Ibra!
    Can you tell us what's your router model?

    • @IBRACORP
      @IBRACORP  Před 2 lety

      Hi there!
      I run a Ubiquiti UDM Pro 🙂

  • @cornbreadcuban5456
    @cornbreadcuban5456 Před rokem

    Oh good you only go over this when using mods. Should be in the title.

  • @cornbreadcuban5456
    @cornbreadcuban5456 Před rokem

    Halting a guide to talk about mods. Stay on topic and make another video.