APP_URL with directory is "ignored" #98

Open
opened 2026-04-05 16:16:30 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @lippoliv on 11/15/2025

Describe the bug
I do use a reverse proxy, therefore I specified APP_URL (e.g. http://server/emails). When accessing http://server/emails I'm redirected to http://server/signin not http://server/emails/signin.

To Reproduce
Steps to reproduce the behavior:

  1. Configure reverse proxy to route /emails to open-archiver container
  2. Start the stack
  3. Access the reverse proxy

Expected behavior
If APP_URL contains path or port, this is used as prefix for all the routes.

Screenshots
If applicable, add screenshots to help explain your problem.

System:

  • Open Archiver Version: 0.4.0

Relevant logs:
Any relevant logs (Redact sensitive information)

Additional context
I'm using Coolify, but that shouldn't matter I guess.

services:
  open-archiver:
    image: logiclabshq/open-archiver:v0.4.0
    restart: always
    expose:
      - 3000
    environment:
      SYNC_FREQUENCY: "0 * * * *"
      NODE_ENV: production
      APP_URL: ${APP_URL}
      ORIGIN: ${APP_URL}
      PORT_BACKEND: 4000
      PORT_FRONTEND: 3000
      TIKA_URL: http://tika:9998
      POSTGRES_DB: open_archive
      POSTGRES_USER: ...
      POSTGRES_PASSWORD: ...
      DATABASE_URL: "postgresql://...:...@postgres:5432/open_archive"
      MEILI_MASTER_KEY: ...
      MEILI_HOST: http://meilisearch:7700
      MEILI_INDEXING_BATCH: 500
      REDIS_HOST: valkey
      REDIS_PORT: 6379
      REDIS_PASSWORD: ...
      REDIS_TLS_ENABLED: false
      STORAGE_TYPE: local
      STORAGE_LOCAL_ROOT_PATH: /var/data/open-archiver
      ENCRYPTION_KEY: ${ENCRYPTION_KEY}
      JWT_SECRET: ${JWT_SECRET}
      JWT_EXPIRES_IN: "7d"
    volumes:
      - type: bind
        source: ${VOLUMES_PATH}/archiver-data
        target: /var/data/open-archiver
    depends_on:
      - postgres
      - valkey
      - meilisearch

In coolify I mapped the domain like this http://server:3000/emails

*Originally created by @lippoliv on 11/15/2025* **Describe the bug** I do use a reverse proxy, therefore I specified `APP_URL` (e.g. `http://server/emails`). When accessing `http://server/emails` I'm redirected to `http://server/signin` not `http://server/emails/signin`. **To Reproduce** Steps to reproduce the behavior: 1. Configure reverse proxy to route `/emails` to open-archiver container 2. Start the stack 3. Access the reverse proxy **Expected behavior** If `APP_URL` contains path or port, this is used as prefix for all the routes. **Screenshots** If applicable, add screenshots to help explain your problem. **System:** - Open Archiver Version: 0.4.0 **Relevant logs:** Any relevant logs (Redact sensitive information) **Additional context** I'm using Coolify, but that shouldn't matter I guess. ```yml services: open-archiver: image: logiclabshq/open-archiver:v0.4.0 restart: always expose: - 3000 environment: SYNC_FREQUENCY: "0 * * * *" NODE_ENV: production APP_URL: ${APP_URL} ORIGIN: ${APP_URL} PORT_BACKEND: 4000 PORT_FRONTEND: 3000 TIKA_URL: http://tika:9998 POSTGRES_DB: open_archive POSTGRES_USER: ... POSTGRES_PASSWORD: ... DATABASE_URL: "postgresql://...:...@postgres:5432/open_archive" MEILI_MASTER_KEY: ... MEILI_HOST: http://meilisearch:7700 MEILI_INDEXING_BATCH: 500 REDIS_HOST: valkey REDIS_PORT: 6379 REDIS_PASSWORD: ... REDIS_TLS_ENABLED: false STORAGE_TYPE: local STORAGE_LOCAL_ROOT_PATH: /var/data/open-archiver ENCRYPTION_KEY: ${ENCRYPTION_KEY} JWT_SECRET: ${JWT_SECRET} JWT_EXPIRES_IN: "7d" volumes: - type: bind source: ${VOLUMES_PATH}/archiver-data target: /var/data/open-archiver depends_on: - postgres - valkey - meilisearch ``` In coolify I mapped the domain like this `http://server:3000/emails`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#98