I
Immich2mo ago
iRedMC

HTTPS impossible on MacOS?

I'm trying to setup HTTPS also with Cloudflare, but I can't follow the instructions on this page: https://immich-distribution.nsg.cc/configuration/https/ because I must run this on a Mac (for various reasons), and I don't have the "snap" command that this seems to imply that I need.
131 Replies
Immich
Immich2mo ago
:wave: Hey @iRedMC, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
iRedMC
iRedMCOP2mo ago
The thing I was using before, called HFS, the newer version has a pretty much one click button for generating this stuff and turning on HTTPS. Is this planned for Immich? I don't know how I'm supposed to do any of this, but I know I need to. One of the problems is that Immich is on port 2283, which is what it said it needed to be on when I was setting it up I think, so I'm afraid to change that to anything else Also hosting on port 80 is a REALLY bad idea in this house, because sometimes it'll just load into the router interface, which I'm assuming is extremely dangerous.
Zeus
Zeus2mo ago
Immich will not include built in HTTPS/web service The link you posted is not from immich but from a third party immich installer/binary You will want to research into reverse proxy setup if you want to expose immich on port 80(HTTP) and 443(HTTPS)
iRedMC
iRedMCOP2mo ago
I do not want to expose on either of those ports For the reason I mentioned, and because I might in the future want something else there. I did see that there's something called nginx or whatever, but I'm really trying not to have to run additional things that break
Zeus
Zeus2mo ago
there is no way to access immich remotely without any additional tool (proxy, VPN, etc)
iRedMC
iRedMCOP2mo ago
That doesn't seem right - I port forwarded it and it worked fine. it's just not HTTPS
Zeus
Zeus2mo ago
Ok, yeah that’s technically possible but you should never do that because it’s not https as you mentioned
iRedMC
iRedMCOP2mo ago
Precisely why I'm doing this
Zeus
Zeus2mo ago
So you need an additional tool
iRedMC
iRedMCOP2mo ago
Then I'd need someone to literally step by step tell me what to do, because all of the resources available assume I'm some kind of Linux dev, of which I am very much not, and I don't want to break it like last time
Zeus
Zeus2mo ago
You might want to look at something like Tailscale VPN. Pretty easy setup We dont offer step by step setup for non immich networking stuff
iRedMC
iRedMCOP2mo ago
a VPN is a lil too much - I'd probably have to connected to it on my phone, and I'd have to teach my ex how to do th- it's just a bad idea for my setup. I'm using Clourflaire... isn't there a way I can just... idk do something easily with that? Fair enough but idk where else I'd go.
Zeus
Zeus2mo ago
To be honest you don’t have the body of knowledge that I would recommend you just host services exposed at your home This requires actual reading/understanding what’s going on. It’s not a 123 step thing
iRedMC
iRedMCOP2mo ago
If someone gave me the instructions, I'd be able to understand and contextualize what's going on
Zeus
Zeus2mo ago
There’s heaps of videos and guides online. Nginx is a good starting point
Ninja_Steelblade
use a cloudflare tunnel
iRedMC
iRedMCOP2mo ago
yea that's why I'm trying to setup Cloudflare
Ninja_Steelblade
cloudflare tunnel limitation is 100mb I think, thats the only problem. But its secure though
iRedMC
iRedMCOP2mo ago
I saw someone talk about that too, but they were trying to move away from it - Probably because it requires some app to be running to connect to it on client? well my up isn't faster than 20Mbps soooo I doubt I'd ever hit that limit outside the house anyway XD
Ninja_Steelblade
that limitation is not speed
iRedMC
iRedMCOP2mo ago
Oh that's a total transfer limit?
Ninja_Steelblade
but the file size maximum
iRedMC
iRedMCOP2mo ago
the fuck- oh Well that's completely out I'm regularly sharing IMAGES larger than that let alone videos
Ninja_Steelblade
Because you can port forward and have cloudflare I recommend doing a reverse proxy with crowdsec for security
Zeus
Zeus2mo ago
Thelimit is only on uploads FYI
iRedMC
iRedMCOP2mo ago
I'm just looking to setup HTTPS through Cloudflare - one step at a time lol I saw many talking about reverse proxies
Ninja_Steelblade
you wont have any limitations on speed (except based on your home network speed) and can directly access it dude, there are two ways, TUNNELS or Reverse Proxies or VPN, but you dont want it without any of these its not possible
iRedMC
iRedMCOP2mo ago
Sadly it would still be out because someone uses my server that never comes inside the local network, and that's far too hard a limit - wouldn't matter for me since I'm almost always inside, but y-
Ninja_Steelblade
I can help with the reverse proxy if you are new to it do the vpn then its easy tailscale is secure and can login with your own google account extremely fast aswell
iRedMC
iRedMCOP2mo ago
Would I have to connect to a VPN every time on clients? if so that's out
Ninja_Steelblade
you can its optional
iRedMC
iRedMCOP2mo ago
oh hmmmm
Ninja_Steelblade
on windows devices, android or ios you have to or can leave it on the whole time for linux its just automated
iRedMC
iRedMCOP2mo ago
as long as I don't need to do that, and there's no limit, and it's free, I think it'll work oh wait If I have to have everyone connect to a VPN at all it's completely out
Ninja_Steelblade
then reverse proxy it These 3 are the only ways
iRedMC
iRedMCOP2mo ago
Sounds like the best option it says I can just use Cloudflare on this page https://immich.app/docs/guides/remote-access/#option-3-reverse-proxy Is this true?
Ninja_Steelblade
you can experiment with any reverse proxy, but caddy is supposed to be the easiest one ya but with limitation of 100mb
iRedMC
iRedMCOP2mo ago
Well if I can just use CF, I'd much rather- oh
Ninja_Steelblade
in uploads
iRedMC
iRedMCOP2mo ago
balls
Ninja_Steelblade
It mentions cloudflare because you can use a reverse proxy to connect your cloudflare domain to it
iRedMC
iRedMCOP2mo ago
I have a Cloudflare domain as of like 20 mins ago
Ninja_Steelblade
and then access your immich instance using cloudflare domain and security then just use it as you can also reverse proxy it
iRedMC
iRedMCOP2mo ago
Yea that's what I'm trying to figure out how to do lol
Ninja_Steelblade
Caddy tutorial or for best performance I suggest Nginx
iRedMC
iRedMCOP2mo ago
that includes instructions for cloudflare? wait what huh?
Ninja_Steelblade
search up a tutorial for caddy
iRedMC
iRedMCOP2mo ago
I did
Ninja_Steelblade
with immich
iRedMC
iRedMCOP2mo ago
oh So that's a yes
Ninja_Steelblade
this guy also has an immich video but if you want nginx I can provide my config
iRedMC
iRedMCOP2mo ago
this seems to be another "provider" - Which I mentioned I already have one - Cloudflare, I'm paying for a domain, would I still have the limit even though I have a domain and everything?
Ninja_Steelblade
Unless you are on CloudFlare business plan you do I think Even on the business plan it still has 500mb limit upload At least the last time I checked it
iRedMC
iRedMCOP2mo ago
you know what I'll deal with the limit, thanks for the other options, but this seems to be the best sweetspot for my situation - How would I go about setting this up for Cloudflare? I've tried searching it up, but I haven't really found much useful info somehow
Ninja_Steelblade
Go to CloudFlare zerotrust
iRedMC
iRedMCOP2mo ago
huh it seems to be taking me to a different dashboard for that
Ninja_Steelblade
Then networks I think Yes
schuhbacca
schuhbacca2mo ago
You only have the limit with cloudflare if they proxy your traffic via your domain. If it's just doing resolution, there's no limit. Just as an fyi
iRedMC
iRedMCOP2mo ago
I think I do have it set to do that so yea alrighty Public hostname?
iRedMC
iRedMCOP2mo ago
one more thing - Is this going to allow me to do the same thing that I do now: Give anyone a link to a page they can view no matter what they're on like they don't need to have anything running on their stuff to be able to view the page (in my case, it's usually an Immich album)
Ninja_Steelblade
Yes
iRedMC
iRedMCOP2mo ago
thank god
Ninja_Steelblade
Yes, they only need internet
iRedMC
iRedMCOP2mo ago
good He seems to be tailoring this specifically for DSM on a NAS but I'm assuming most of the surrounding stuff I can follow. I hope so anyway, since I'm not doing the Docker thing It doesn't appear to be letting me use my domain for this or the subdomain I created for it
iRedMC
iRedMCOP2mo ago
No description
iRedMC
iRedMCOP2mo ago
He didn't have this problem Also he said to disable TLS verification, which I think is... not what I'm trying to do, since the entire point of this is HTTPS so yea I'd need to somehow stumble upon other resources.. it's also telling me I can't use my external IP.. so maybe it's looking for the internal one for my machine, since it's running a service on it? nope doesn't work yea I can't do what the guy did - It just says "service URL is not valid" This video is for a specific purpose, and the info that it gives me can't be used for my case
Ninja_Steelblade
Delete the existing record and tunnel and connect again
iRedMC
iRedMCOP2mo ago
ok I got it to stop telling me my IP is invalid.. somehow - but now I just see this when I go to the "site"
No description
Ninja_Steelblade
Yes What are your CloudFlare tunnel settings
iRedMC
iRedMCOP2mo ago
For the public hostnames section?
Ninja_Steelblade
The place where you enter the address Is immich hosted on your Linux server or where?
iRedMC
iRedMCOP2mo ago
I don't have a Linux server. It's a Mac mini on my local network.
Ninja_Steelblade
So it's on docker?
iRedMC
iRedMCOP2mo ago
Well ok screenshot coming up yea
Ninja_Steelblade
Run as a service on macOS · Cloudflare Zero Trust docs https://share.google/tTUX9R4MnK8bmXZcJ
Cloudflare Docs
macOS
You can install cloudflared as a system service on macOS.
Ninja_Steelblade
Did you install the tunnel on the Mac mini
iRedMC
iRedMCOP2mo ago
No description
iRedMC
iRedMCOP2mo ago
I installed the cloudflared thing
Ninja_Steelblade
Its http
iRedMC
iRedMCOP2mo ago
if that's the "tunnel", then yes
Ninja_Steelblade
For the local network Https after tunnel, http local
iRedMC
iRedMCOP2mo ago
I didn't think it was running, ether, so I typed "cloudflared" in Terminal afterwards as well
Ninja_Steelblade
The service type should be http
iRedMC
iRedMCOP2mo ago
alright so https://im.iredredux.net/ should work? oh that's not what he did I guess that's one of the differences ok
Ninja_Steelblade
It works
iRedMC
iRedMCOP2mo ago
oh my god it works
Ninja_Steelblade
Seems pretty fast on my side
iRedMC
iRedMCOP2mo ago
not secure though - that was what I was trying to fix How do I turn on HTTPS with this? Or is this.... basically an "alternative" so I wouldn't need it or something
Ninja_Steelblade
Https is turned on
iRedMC
iRedMCOP2mo ago
oh? oh damn ok LOL
Ninja_Steelblade
When you access the domain now it's https Lol Http is local
iRedMC
iRedMCOP2mo ago
Ok so I should have a limit of 100MB upload PER FILE, not in total?
Ninja_Steelblade
Remove the portforward from your network
iRedMC
iRedMCOP2mo ago
just to be very carefully clear
Ninja_Steelblade
Yes
iRedMC
iRedMCOP2mo ago
ok excellent! Thanks so much
Ninja_Steelblade
Setup immich network settings
iRedMC
iRedMCOP2mo ago
wait one more thing can I turn off port forwarding (through router) for 2283 and have this still work?
Ninja_Steelblade
So it automatically switches to uploading on local network while at home so you don't have the limit when connected to home wifi Yes it should
iRedMC
iRedMCOP2mo ago
BRUUUG awesome
Ninja_Steelblade
If the IP in CloudFlare tunnel is set to 127.0.0.1:2283
iRedMC
iRedMCOP2mo ago
I did notice that oh balls hmmm How I would I check that? Something in Terminal?
Ninja_Steelblade
127.0.0.1 is loaclhost Here the url
iRedMC
iRedMCOP2mo ago
I'm aware oh so the service the service URL*
Ninja_Steelblade
Change the IP from portforward to this
iRedMC
iRedMCOP2mo ago
I have it pointing to my external IP
Ninja_Steelblade
The external IP should not be proxied out without security or reverse proxy Its unsafe
iRedMC
iRedMCOP2mo ago
I'm not quite understanding - should I put the internal IP for that Mac mini in there instead?
Ninja_Steelblade
Sure that works too
iRedMC
iRedMCOP2mo ago
No but is that what I should be doing
Ninja_Steelblade
I just said the loaclhost ip because when you change your network or something you have to change your device local ip again
iRedMC
iRedMCOP2mo ago
Oh ok yes it does appear to work still
Ninja_Steelblade
Make sure to setup CloudFlare google oauth Basically google oauth in CloudFlare and then CloudFlare oauth in immich
iRedMC
iRedMCOP2mo ago
The account I made was through that does that mean I've already- I'm guessing this is something else
Ninja_Steelblade
Because when opening you website it asked for email and password of inmich
iRedMC
iRedMCOP2mo ago
ye
Ninja_Steelblade
This method might be unsafe
iRedMC
iRedMCOP2mo ago
Oh
Ninja_Steelblade
So make sure to secure it With oauth setup
iRedMC
iRedMCOP2mo ago
I mean there's no other options on the page
Ninja_Steelblade
Such as this Go to administration settings on immich
iRedMC
iRedMCOP2mo ago
OH
Ninja_Steelblade
The first option should be about logging in
Ninja_Steelblade
OAuth Authentication | Immich https://share.google/ZwySdWo0NllMgHRuU
OAuth Authentication | Immich
This page contains details about using OAuth in Immich.
Ninja_Steelblade
Here is the official immich guide for oauth With google directly
iRedMC
iRedMCOP2mo ago
Honestly this seems extra. I might try someday, but for now, as long as someone can't read my password out as plain text from an HTTP request or some shit, I've had my quota for the day XD Thanks so much for your help
Ninja_Steelblade
🙂
iRedMC
iRedMCOP2mo ago
It's people like you who give me the highest faith in the open source community
Ninja_Steelblade
Thanks man

Did you find this page helpful?