Problem with reverse proxy
I am using nginxproxymanager as reverse proxy and I have this error when I try to make my photos public
502 Bad Gateway
31 Replies
:wave: Hey @Greg,
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. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.
this is my network config
is your forward port in npm 2283?
and make sure your hostname is the name of your container
yes

why localhost? if you are running npm in a container, unless both Immich and npm are using host network, localhost won't work
you should be using the name of the immich server
this is my visual studio code
It can proxy correctly immich to my dev device
provide your immich and npm compose files, and your npm configuration.
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP
environment:
# Uncomment this if you want to change the location of
# the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
default:
external: true
name: npm

Try putting the local ip of the machine instead if port 2283 is published and that should work
I tried 0.0.0.0, localhost, 127... 192.168....
I tried everything I know
With this immich service I have always 502 error
Any ideas how can I inspect it from inside?
Logs from npm dont tell me anything usefull
use
immich-server
insteadWhat do you mean?
instead of IP / hostname
is this unsolvable problem?
Of course not. It’s not really related to immich at all, though
did you try what I told you?
Can you explain what do you mean?
Can you point me part of docs that explain this?
I need to expose this service outside through reverse proxy through htps protocol
I cannot, since this is a problem with how you configured your nginx proxy, has nothing to do with Immich. all I'm telling you is to use
immich-server
in the Hostname/IP field, instead 127.0.0.1, is not that dificult to understand...
Oh you mean this
Thank you, that works!
but I cant reset passsword now
it is insane
this cli is not working properly
I mean
reset-admin-password
command
can I levae empty password?
I am pressing enter and nothing happends
only ctrl-c
can escape this
I put password, press enter and it does nothing
Then I need to terminate this using ctrl-c
What is wrong with this cli
Where is source code of this?
if you don't enter a password it will generate a random one. the cli works fine



I have a problem with resseting password from docker cli
when I press enter it is not executing it
I need to exit ctrl-z or ctrl-c
something is not working fine
can i push new password with cli command?
this cli cannot read my input
how to terminate it when i type whole password?
enter doesnt work
to run it with exec you have to use a tty
docker exec -it ......
can you help me construtc the command?
docker exec -it immich_server /bin/sh
ok
sudo docker exec -it ad45774cae32 immich-admin reset-admin-password
This command worked for me