Closed DunklerPhoenix closed 3 months ago
Did you modify anything? When the app starts it replaces the file /app/certwarden/frontend_build/env.js
and sets the API path. The placeholder value is __API_URL__
which is showing up in your error message.
I pulled the latest image and started it without any changes and was able to login without error.
hmmm not that I know. I start certwarden with this docker compose file.
For testing purposes I removed the container, the image and the path /home/docker/files/certwarden and still I get this error.
docker-compose.yml
services:
certwarden:
image: ghcr.io/gregtwallace/certwarden:latest
ports:
- 4050:4050 # server interface (http)
- 4055:4055 # server interface (https)
- 4060:4060 # http-01 challenge server (http)
- 4065:4065 # pprof debug server (http)
- 4070:4070 # pprof debug server (https)
volumes:
- type: bind
source: /home/docker/files/certwarden
target: /app/data
labels:
traefik.enable: "true"
traefik.docker.network: "bouncer"
traefik.http.routers.certwarden.entrypoints: "https"
traefik.http.routers.certwarden.middlewares: "authelia@file"
traefik.http.routers.certwarden.rule: "Host(`certs.manager.domain.tld`)"
traefik.http.routers.certwarden.tls: "true"
traefik.http.services.certwarden.loadbalancer.server.port: "4050"
hostname: 'certwarden'
user: "1000:1000"
environment:
TZ: "Europe/Paris"
PUID: "1000"
PGID: "1000"
restart: always
networks:
default:
external: true
name: bouncer
Could it be that the path ist wrong?
You wrote /app/certwarden/frontend_build/env.js
but the path in the filesystem is /app/frontend_build/env.js
.
/app/certwarden
is a file
EDIT: The replacement seems to work, but it doesn't change anything on the 404 error
certwarden:/app/frontend_build# cat env.js
window.env = {
API_URL: '/certwarden/api',
SHOW_DEBUG_INFO: false
};
EDIT2: Nevermind. It's a problem of my browser ʕಠ_ಠʔ I think one of the extensions generates this problem, because it works on my phone and on another browser.
EDIT3: I don't understand what is happening here. After the successful login on another device, its now also working on my normal browser. Confusion¹⁰⁰
Anyway. Thank you for your help and sorry for the waste of time ^^'
That is... very weird to say the least. Ah, technology sometimes :)
Heho I tried to set up certwarden, but can't login with the standard login data. It seems like the frontend has problems to find the api path.
Image: ghcr.io/gregtwallace/certwarden:latest Version: v0.21.4
URL I enter into the browser: http://192.168.100.53:4050/ URL I get redirected to: http://192.168.100.53:4050/certwarden/app/
Console Log from Brave-Browser:
Container Log:
Autogenerated Config File:
"config_version": 3