Safely sharing images behind a reverse proxy #21961
Replies: 4 comments 4 replies
-
|
Everything important is under the /api endpoint. If you expose this entire path you might as well expose the whole site, there’s no difference. |
Beta Was this translation helpful? Give feedback.
-
|
Sounds like you might be looking for https://github.com/alangrainger/immich-public-proxy |
Beta Was this translation helpful? Give feedback.
-
|
Isn't better to create authentication token and use custom headers? You can keep pangolin SSO on, add pin etc and still have an access to the app, I did it, easy and good. |
Beta Was this translation helpful? Give feedback.
-
|
Exposing
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to open a discussion on safely exposing and sharing an immich instance to the public without opening myself up to potential attack vectors. Specifically, as there is little to find about this use case in combination with Pangolin. This discussion could serve as a resource for people wanting to achieve the same.
Some context:
http://immich:2283.https://immich.DOMAIN.comNow everything is working as expected, I can access Immich outside my home through the browser or iOS app by using the
https://immich.DOMAIN.com. (on iOS, I have to set my server URL tohttps://immich.DOMAIN.com/api(why?)) with Pangolin's authentication layer infront.But what is a self-hosted iCloud/Google Photos alternative without being able to share your images/albums easily with friends and family? To support this, I configured the following rules in Pangolin:
Now my question is, is it safe to expose these routes/paths publicly? Beforehand, I only exposed specific
/api/paths like/api/server/*,/api/shared-links/*,/api/assets/*. However, this resulted in iOS not being able to connect, whilst sharing links worked fine without authentication.Beta Was this translation helpful? Give feedback.
All reactions