Giter VIP home page Giter VIP logo

Comments (7)

erikjohnston avatar erikjohnston commented on August 15, 2024 2

Oh! You'll probably need to set bind_addresses to ['0.0.0.0'] so that it accepts connections from outside the container?

from sygnal.

LavTeamProject avatar LavTeamProject commented on August 15, 2024 1

Oh! You'll probably need to set bind_addresses to ['0.0.0.0'] so that it accepts connections from outside the container?

Thank you very much!
I spent two days.

➜ sygnal curl -k -X POST http://192.168.0.9:5000/_matrix/push/v1/notify -H "Content-Type: application/json" --data @test.json
{"rejected": ["V2h5IG9uIGVhcnRoIGRpZCB5b3UgZGVjb2RlIHRoaXM/"]}%

from sygnal.

LavTeamProject avatar LavTeamProject commented on August 15, 2024

sygnal_copy.txt

from sygnal.

erikjohnston avatar erikjohnston commented on August 15, 2024

Hi, I think its due to the port mapping in the docker run command: -p 5000:8989? Isn't that saying its mapping port 5000 on the host machine to port 8989 in the container, but sygnal is listening on port 5000 in the container? Does using -p 5000:5000 work? (Or alternatively updating the sygnal config to listen on 8989 instead)

from sygnal.

LavTeamProject avatar LavTeamProject commented on August 15, 2024

Hi, I think its due to the port mapping in the docker run command: -p 5000:8989? Isn't that saying its mapping port 5000 on the host machine to port 8989 in the container, but sygnal is listening on port 5000 in the container? Does using -p 5000:5000 work? (Or alternatively updating the sygnal config to listen on 8989 instead)

5000 - in the container
8989 - on the host machine

docker run -it -logs --mount type=bind,source=//sygnal.yaml,target=/sygnal.yaml as/sygnal -p 5000:5000
no effect

curl -k -X POST http://127.0.0.1:5000/_matrix/push/v1/notify -H "Content-Type: application/json" --data @test.json
curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused

from sygnal.

erikjohnston avatar erikjohnston commented on August 15, 2024

Can you run docker ps to see whether sygnal is still around? Also, do you have any firewall configured that might be blocking the connection?

from sygnal.

LavTeamProject avatar LavTeamProject commented on August 15, 2024

Can you run docker ps to see whether sygnal is still around? Also, do you have any firewall configured that might be blocking the connection?

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a53baf15b89 as/sygnal "python -m sygnal.sy…" 8 minutes ago Up 8 minutes 5000/tcp suspicious_wu

Also, do you have any firewall configured that might be blocking the connection

no

from sygnal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.