hi guys and welcome back to another ibra corp video in a lot of hitting a thousand subs i
thought i would just get a nice quick one out there for you guys to look at
something that gets requested quite often and i thought i would share it just to help you out
as usual i just want to say a quick thank you to everyone who likes our videos watches them
subscribes to the channel it helps immensely you know now we've hit a thousand it's just
amazing so thank you very much if you haven't subscribed please consider
subscribing if you enjoy what we're doing here and you enjoy our videos
before you mention i have noticed that there are some similar videos to things i've been
putting out and to address that look we're here to just put out the best content we can and if
other people want to do something similar by all means you know it's a free world and maybe they
have a different way of explaining things the audience that i cater for by now have realized
that i like to just get into things and we address it with an established knowledge so perhaps there
is an audience there that i'm not catering for specifically for those that i am thank you for
coming back and watching in today's video we're going to be looking at server auth with organizer
and basically this will secure any pages you have by allowing organizer to intercept them first
and then bounce them back to you it's built into organizer and it's free of charge
if you haven't watched my organizer video i suggest you do that first because we won't be
looking at installing it again we're just going to pick up where we left off but i'll be using
my live environment just to show you how quick it is so without further due let's get into it
so here on the server auth page for organizer and it has a whole bunch of explanation about how it
all works but i'm here to save you guys time from reading this because i've already read it
so if you want to check it out i've got the link in the description feel free to click it there and
have a more thorough read but quite briefly what all you need to know for what we're doing today
organizer has built in groups from 0 through to four starting with admin through to user it
also has a 998 and 999 so logged in users and guests this will come important later
we'll go down to nginx proxy manager because that's what we'll be using today here's what
you basically tells you what you need to put in and where you need to put it but i've got some
advanced config that i'll give you so that you can have some extra error pages and things like that
so let's ignore this for now and i'll just show you straight up what i've got in a live
environment so you can see for yourself so we're here in nginx proxy manager and we're looking at
our sonar installation this is our proxy for sonar everything looks pretty standard as you can tell
if you go to custom locations here's what you need to do
so click add a location it's going to ask you to put in a location so put in this here all right
under the host name put the ip address of the server where organizer lives followed by api v2
question mark group equals dollar sign one i'll put this all in the description guys you don't
have to remember i realize you're not all parrots so under the gear icon we'll click that it expands
and allows you to put some custom config so in here you'll need to put this proxy pass
and proxy set header exactly as it is underneath this is an extra section here that i really want
to reiterate for those who are using anything that has a api endpoint sonar is one of those things
other applications that might have an api for example jacket has an api radar as an api
anything like that you'll need to put this in here all right jellyfin is another good example too
the reason why is because if you don't put this in here if you try to use a mobile app
or anything that tries to connect by an api it will keep getting bounced to organizer and
in some cases you're not actually able to sign in okay and it's just annoying now if you're putting
an api in you're saying look i don't need anything coming through an api to be authenticated because
you've already put in an api token somewhere so it should technically already be authenticated
so just add api here like you see it
you've got your forward host name slash api if that's so if you had your domain in here instead
sonar.ibracorp.io api for example that's the part you add the port number of sonar if we click the
gear icon again we want auth underscore request off so just put that in there i didn't add before
this port here is the port of your organizer installation alrighty with that done
head over to advanced and under advanced you are going to put this code into your advanced section
when we mentioned the groups earlier we had auth zero through to four this is where you would put
that code so auth0 basically means only admins have permission to access this page so if they
were to hit sonar on my website it would bounce them to organizer they would then be asked to sign
in and then if even after signed in if they're not an admin they won't get access all right
but the other options you had was guest access or logged in users so you can allow you know anyone
who's logged into organizer you get access as well the parts you'll need to edit are just this part
here so your domain where organizer lives right in my case it's the hub but yours might just be
whatever.com for example wherever you are hosting organizer and we covered that in our organizer
video already so you need to change that here make sure it's matching your environment here as well
and here as well and i'll put all this in the description below once you've done that click save
the next part you'll need to do is edit your actual organizer config here in
nginx proxy manager as well so we'll scroll up and we'll grab that so here's our config for
organizer in our environment this is what we've got set up for as you can see that's the port as
we've set up earlier hit the custom locations and you'll need to add this in here as well
so we're defining this location same code that we put in before
adding internal proxy set header then under advanced you don't need to put anything so
basically you're saying this is the main page this is where we are directing this location to
once you've done that that's pretty much it guys i'll show you what that looks like now
as you can see we're on our hub page this is our members only hub page and i'm not logged
in so i'm just a guest so i'm going to try and hit our sonar page and see what happens
as you can see we've tried to hit the page and it's bounced us back
and it's telling us unauthorised we don't belong here so we'll just click ok
now we'll actually sign in
and you'll see that it automatically straight away sends us back
to our sonar page for us so it redirects us for us
so if you were looking at something like orthelia and it wasn't your cup of tea maybe you didn't
want a whole new set up for authorization and authentication organizer can handle that for you
too and it does a great job at it so i'd recommend that as an option if you're interested as i said
there's more on the documentation page if you want to have a read of it but that pretty much covers
covers how to do that and it works really well as you can see you know from now basically all
you need to do or any other ones that you want to secure is just go into the settings
add a custom location if it has an api allow the api through and i'll just expand those again
for you and then in advanced we add this code and that's it i hope that was helpful if you
need any more information drop it down in the comments below please don't forget to like and
subscribe we really appreciate your patronage and we'll see you in the next ebrecorp video
you