mirror of
https://github.com/router-for-me/EasyCLI.git
synced 2026-04-25 23:55:49 +03:00
[GH-ISSUE #13] Docker Container auth file creation failure #9
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/EasyCLI#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DevGuyRash on GitHub (Oct 26, 2025).
Original GitHub issue: https://github.com/router-for-me/EasyCLI/issues/13
Describe the bug
#144 - Bringing this back up because even using https://github.com/router-for-me/EasyCLI does not allow someone to create new auth files if the remotely managed server is being hosted by Docker.
I've tried creating an auth file for:
It always returns 404 error no matter what. I've tried using self-hosted and also running it on my server, etc.
I've tried creating the auth files using the docker container itself and running the command and using EasyCLI to connect to it and create it that way, but it's still the same thing.
The actual login is always fine, but it cannot create the auth files because it always produces
404 page not foundon callback.This is only when the server is running in a docker container, and that's it. It works outside of a docker container.
@luispater commented on GitHub (Oct 26, 2025):
Which CLIProxyAPI version?
@luispater commented on GitHub (Oct 26, 2025):
You can always visit the "/google/callback" URL. Are you sure the domain is correct?
@DevGuyRash commented on GitHub (Oct 27, 2025):
I actually ended up fixing it!
There are two versions I had to fix:
Local Fix
This was easy. I just removed all the ports/networks and changed it to run in
network_mode: hostServer Fix
I added some routers and services in the dynamic config for Traefik which made it start working, alongside enabling a few things in the traefik docker compose:
Traefik
Then in my traefik service inside docker compose file I added:
CLI Proxy API
Modified ports to:
@luispater commented on GitHub (Oct 27, 2025):
When using EasyCLI's remote mode to connect to a local docker instance.
You need to disable these docker port forwards.
This is because EasyCLI enables the same ports for simple port forwarding.
If docker has these ports open, the ports will be occupied, preventing EasyCLI from functioning correctly.