Skip to content

404 errors when using CMD_URL_PATH in new 2.6.0 #1936

@esteveavi

Description

@esteveavi

Hello,

When configuring CMD_URL_PATH to some value 404 appears on internal resources like js, favicon, and the app is not working.

Here is an example of docker-componse:
services:
database:
image: postgres:11.6-alpine
environment:
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=change_password
- POSTGRES_DB=codimd
volumes:
- "database-data:/var/lib/postgresql/data"
restart: always
codimd:
build:
context: .
args:
- CMD_URL_PATH=codimd
image: nabo.codimd.dev/hackmdio/hackmd:2.6.0
environment:
- CMD_DB_URL=postgres://codimd:change_password@database/codimd
- CMD_USECDN=true
- CMD_URL_PATH=codimd
- CMD_DOMAIN=localhost
- CMD_PROTOCOL_USESSL=false
- CMD_URL_ADDPORT=true
depends_on:
- database
ports:
- "3000:3000"
volumes:
- upload-data:/home/hackmd/app/public/uploads
restart: always
volumes:
database-data: {}
upload-data: {}

http://localhost:3000/codimd/build/font.68d91a5a4c1afd7f82a9.css --> 404
http://localhost:3000/codimd/build/cover.65bca5da2232a62861ce.css |  --> 404
.....

Do I miss something?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions