#Access immich outside local network?

1 messages · Page 1 of 1 (latest)

rotund vector
#

Hi there, is there any guide on how to access immich when not in the home network? It works for my website on port 80, so I'm not super sure why it doesnt on port 2283 for immich. Any help appreciated!

delicate palm
#

Hi @rotund vector! Do you or are you using a reverse proxy to share Immich externally using your own subdomain?

rotund vector
delicate palm
#

There are quite a few proxy managers out there to choose from. I personally use a Nginx Proxy Manager because I haven’t put effort to make the switch to something else and the UI is easy to learn and use. Others might say Traefik— also a great option.

I’m going to assume you’re using Docker to run Immich? Check out this video tutorial that’ll show you how to set up Nginx Proxy Manager and share some of your containers with the world while simultaneously protecting with Cloudflare: https://youtu.be/fCJbw75DCZw

Synthetic Everything demonstrates how to install and use NGINX Proxy Manager. NGINX Proxy Manager allows you to easily configure a reverse proxy and secure your website through SSL certificates provided by LetsEncrypt.

Documentation referenced: https://nginxproxymanager.com/guide/#quick-setup

Install Docker/Portainer: https://youtu.be/4y0ksWu4...

▶ Play video
rotund vector
delicate palm
#

Sorry, I’m having trouble understanding. What do you mean you’re already hosting your website using Nginx?

#

Just want to make sure I direct you to the right next step

#

I’m not too familiar with Nginx configs myself, but I found a few examples that might help?

#1090700793855881298 message#

#immich message

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

rotund vector
#

As in html file in the /var/www directory so on and so forth

delicate palm
#

I think I'm getting you. So that's just your personal static website. If you'd like to start sharing docker containers externally, then a proxy manager will do the job for you, including your website.

#

Take a look at that video I sent. It should help you get the right idea and set you up for future apps outside your local network. If you need more help, just let me know!

lucid dew
#

Nginx would receive all external requests and either serve your website or provide a reverse proxy to Immich, based on request url (either domain, subdomain, or path)

rotund vector
lucid dew
#

Nice and simple

rotund vector
#

And the location should be the docker container.. somehow I suppose?

lucid dew
#

location is the request location coming to nginx

#

So you tell nginx that if there is a request coming in to /some/path/ then it needs to proxy the request to Immich

#

Makes sense?

twin axle
#

Hah that was the question i was about to ask, now im using cloudflare via web interface, but anyone was successful with Warp or other tunnel solution to be able backup photos remotely?

lucid dew
lament zenith
#

Hello, best way to access home network is with a VPN.
you can set up wireguard or openvpn on your internet box or router (I have a pfsense at home for exemple)
or your can set up tailscale

twin axle
#

I don't have an access to route so cloudflare is the best for me, but would like to route sometimes whole network from phone for example not only via website :/

lucid dew
#

My use case is different, as I would like to share albums and/or use share links with family members. For this, a VPN would overcomplicate things.

rotund vector
lucid dew
#

Of course it does

#

One nginx instance can serve many websites across many domains and subdomains

rotund vector
lucid dew
#

Sorry, I don't know if CloudFlare does any magic or not. But if it is a standard dns server then the dns request is redirected to your public IP address where you have your router. So on your router you need to set up port forwarding to your computer (e.g. port 80 for http)

#

Nginx always receives http or https requests. In the request header (coming from the visitors browser) there is the full request url including your domain name. In your nginx config you tell nginx what to do for certain requests

#

As nginx is a web server, it can serve websites directly

#

As nginx is also a reverse proxy, it can proxy the request to other servers/services

lucid dew
rotund vector
#

That makes a lot of sense, thank you so much for explaining @lucid dew ! So I'd create one config file for my website (where the server name is jeromestephan.de) and one config file for photos where the server name is photos.jeromestephan.de?

lucid dew
#

Yes

#

I think you can have two server configurations in one file

#

Or you can also keep each server config in separate files

#

Try to find a good nginx tutorial and you will get to it in no time

rotund vector
#

Thanks a lot @lucid dew ! Works like a charm!

lucid dew
#

Awesome

merry leaf
#

I'm using tailscale vpn for this. Super simple for folks not already running or unfamiliar with nginx.

fathom linden
quasi mountain
fathom linden
rotund vector