Skip to content

v1.131.0-sub-path

Pre-release
Pre-release

Choose a tag to compare

@Boc-chi-no Boc-chi-no released this 09 Apr 02:08

Immich Frontend Project v1.131.0 with Hash Routing


Supports sub-paths in Immich.
Out of the box, ready to use. Of course, you can compile it yourself, and all you need is to configure the reverse proxy.
If you encounter any bugs, feel free to submit an issue.


You can refer to the Nginx configuration file below.
Replace /usr/share/nginx/html/immich/ with the path where you extracted the files and /immich/ with your sub-path.

location /immich/ {
  alias /usr/share/nginx/html/immich/;
  index index.html;

  location ~ /immich/(api/|custom.css) {
    client_max_body_size 0;
    proxy_request_buffering off;
    proxy_buffering off;

    proxy_pass http://immich_server:3001;
    rewrite /immich/(.*) /$1 break;

    # Reverse proxy settings from Immich
    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_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_redirect off;

    # Timeout settings
    proxy_read_timeout 600s;
    proxy_send_timeout 600s;
    send_timeout 600s;
  }
}