Shlink Web Client can cURL successfully to shlink API on Docker network, but adding the server in the web client UI fails #2195
Replies: 1 comment
-
Disregard, but I'll leave this up for anyone in the same situation. It wasn't clear to me that the web client was only a browser client and needed WAN access to the backend API. Not my favorite architecture choice in the world... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Shlink version
4.2.0
PHP version
Whatever is in Docker
How do you serve Shlink
Docker image
Database engine
MySQL
Database version
n/a
Summary
I have a
shlink
container and ashlink-web
container for the web client. Both are loading and functioning as expected on their own, but getting them to connect with each other is causing issues.I have a backend network connecting the two, and I have no issue accessing my
shlink
container using cURL on theshlink-web
instance:I also have a pre-set API key within my Docker configuration that shows, as expected:
However, whenever I add these credentials within my self-hosted
shlink-web
interface, I get:For reference, here is my
docker-compose.yml
for the services. I use a Traefik reverse proxy:Additionally, here is my server config (although, it also fails if I enter it directly into the UI):
I'm not entirely sure what I'm doing wrong, but it very well could be user error. What's confusing to me is being able to access the
/rest/health
endpoint without issue from the web client container, but that is apparently failing (?) when done through the app.Beta Was this translation helpful? Give feedback.
All reactions