Not respecting URL path through Cloudflare tunnel

Open
#546 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, docker

Research direction

The payload names no source files, only a Docker deployment behind a Cloudflare tunnel with a URL path prefix, and asset requests going to /_app/ instead of /full_path/_app/. Start by reproducing with a reverse proxy that strips or adds a path prefix, then find where the app builds its asset and content URLs. Done means the generated URLs keep the client's path prefix. The Configuration section is empty, so the config and log files need to be gathered first.

Written by the indexing model from the issue text.

Description

bug
Version

v1.0.48.0

Deployment Method

Android

Description

I'm trying to deploy ImmichFrame on several Android tablets for family.

I'm running separate Immich-Frame docker instances on separate ports with separate AuthenticationSecrets to control which Albums each Immich-Frame instance can display.

The goal is to use CloudFlare Tunnel Connectors to provide external access to the different instances by URL Path.

As seen in the screenshot below, the initial request comes in properly with the full path and auth secret (bottom line). Then the next request comes in for chunks at /_app/ instead of /full_path/_app/. It is getting a 404 response from Cloudflare at this point.

Image

I know I could break these requests up to different hosts, but I would rather use URL paths instead of hosts. It seems like the content URL's being generated by immichFrame are not respecting the full path of the client request when generating the content URL's.

Reproduction

Cloudflare Connector with basic settings

Image
Expectations

No response

Configuration

Logs

Pre-Submission Checklist
  • This is a bug report and not a feature request

  • I have provided all of the required information to reproduce the bug (config, logs, etc.)

  • I have checked for related issues and checked the documentation

Dominant language
C#
Stars
2.4k
Forks
121
Avg merge
18d 20h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from immichFrame/ImmichFrame

All issues in immichFrame/ImmichFrame

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.