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

Docker server sending back localhost #20

Open
fvlasie opened this issue Jul 7, 2024 · 2 comments
Open

Docker server sending back localhost #20

fvlasie opened this issue Jul 7, 2024 · 2 comments

Comments

@fvlasie
Copy link

fvlasie commented Jul 7, 2024

Describe the bug
Spacebarchat-server run from Docker sends back localhost:3001 for the instance URLs which causes network errors when connecting from thh eclient.

Expected behavior
The server should send back URLs matching the domain entered into the client's "Instance" field.

Console Logs
Connect error: POST http://localhost:3001/api//auth/login

The docker-compose.prod.yaml does not contain environment variables for instance URLs.

Is there another way to that these are supposed to be set? I may be blind but I could not find any references to setting instance URLs for the server in the documentation.

@sIush
Copy link

sIush commented Sep 17, 2024

same issue here

@Puyodead1 Puyodead1 transferred this issue from spacebarchat/client Sep 17, 2024
@SupremeMortal
Copy link

SupremeMortal commented Sep 17, 2024

You need to define the public API URL in the config since it defaults to localhost:3001 inside a container.

https://docs.spacebar.chat/setup/server/configuration/#available-configuration-options
api_endpointPublic

If you're running in database mode, it'll be in the config table

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

No branches or pull requests

3 participants