edkedk
edkedk
IImmich
Created by Koinu on 9/3/2023 in #help-desk-support
Proper Usage of "Albums on Device" section.
8 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
I have cache enabled for another web app I use. Somehow this may have affected my immich server block. Maybe it is a good idea to add directives disabling cache in the example to avoid problems in initial setup as I had faced. Then the user who knows what he is doing can disable according to their needs. I can confirm that the moment I disabled cache as in my previous post, immich started to work fine, logging to the correct user.
21 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
My problem was with caching. I solved it by disabling cache in nginx:
# Disable caching for the entire server
proxy_cache off;
proxy_cache_valid 0s;
proxy_no_cache 1;
proxy_cache_bypass 1;
# Disable caching for the entire server
proxy_cache off;
proxy_cache_valid 0s;
proxy_no_cache 1;
proxy_cache_bypass 1;
21 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
You were right. I could solve it, but I have no idea how. I just started a new nginx config from scratch. Thank you for your help
21 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
@jrasm91 , thank for you comment, but this is not the issue because I added that after multiple attempts without this line
21 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
This problems happens in multiple browsers, different computers and different android apps. Since it works fine on LAN, I suspect it is a problem in reverse proxy. See my nginx config below:
server {
listen 7443 ssl;
server_name <my-domain>;

# https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template#L28
client_max_body_size 50000M;

location / {
proxy_pass http://localhost:2283;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Cookie $http_cookie;

# http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
}
}
server {
listen 7443 ssl;
server_name <my-domain>;

# https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template#L28
client_max_body_size 50000M;

location / {
proxy_pass http://localhost:2283;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Cookie $http_cookie;

# http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
}
}
21 replies
IImmich
Created by edkedk on 9/8/2023 in #help-desk-support
Wrong user when behind reverse proxy
Can someone point me how immich authenticate the users? Somehow my proxy server is forwarding a wrong information to immich. Is it thru cookie?
21 replies