Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused about installation #67

Open
kyb3r opened this issue Jun 26, 2019 · 5 comments
Open

Confused about installation #67

kyb3r opened this issue Jun 26, 2019 · 5 comments

Comments

@kyb3r
Copy link
Contributor

kyb3r commented Jun 26, 2019

I have cloned the repo and then did the docker-compose up -d command, It seems like it works since when I access the server from my browser it shows the "ceryx no app here" page. However I can't seem to access the ceryx-api at all.

There are no ports exposed for it. I have tried making requests to http://localhost:5555 but they never connect to anything.

image

Am I doing something wrong, I'm not that familiar with docker, and I'm trying to write a script that will dynamically add routes that I will run on the VPS.

@parisk
Copy link
Contributor

parisk commented Jun 26, 2019

Hello @kyb3r,

The Ceryx API is intentionally not exposed. Currently it has not any authentication mechanism, which makes it completely unsuitable for public exposure.

To access the Ceryx API run the following command:

cd /path/to/ceryx/

docker-compose exec api bash
curl localhost:5555 -X POST -d '{"source": "...", "target": "...", "settings": {...}}'

This should definitely be clarified in the README, so I am adding the documentation label.

@kyb3r
Copy link
Contributor Author

kyb3r commented Jul 1, 2019

Thanks @parisk! I have another question, how can I refer to localhost as a target? I currently have a bunch of apps that are running that don't use docker, but I don't know how to refer to them. Currently, I am assuming localhost refers to the docker container itself.

@parisk
Copy link
Contributor

parisk commented Jul 4, 2019

There are two ways to do this:

  1. Expose ceryx to the host network. If you do this though, you won't be able to use other Docker networks though.
  2. Expose these applications in a network interface other than localhost. Ceryx should be able to reach them by using ip:port.

@rnixx
Copy link

rnixx commented Oct 23, 2020

Hi, i'm planning a setup where i want the dynamic reverse proxy accessible via public IP, and the API exposed on an internal IP. How can i achieve this?

@parisk
Copy link
Contributor

parisk commented Mar 6, 2021

Hi @rnixx! Deploying Ceryx in either:

should do the work for you by exposing the API only in the internal network named api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants