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

Can't deploy cryptpad on a different machine than reverse proxy #1186

Closed
Enteee opened this issue Aug 18, 2023 · 3 comments
Closed

Can't deploy cryptpad on a different machine than reverse proxy #1186

Enteee opened this issue Aug 18, 2023 · 3 comments
Milestone

Comments

@Enteee
Copy link
Contributor

Enteee commented Aug 18, 2023

Description

The web socket port in the 5.4 release always binds to localhost.

Env.httpServer.listen(Env.websocketPort, 'localhost', w(function () {

Therefore 5.4 can only be deployed if nginx runs on the same machine.

Steps to reproduce

  1. deploy crypgpad on different machine than nginx
  2. run /checkup

Relevant logs

nginx error log:

2023/08/18 22:33:31 [error] 17#17: *1837 connect() failed (111: Connection refused) while connecting to upstream, client: ********, server: ****, request: "GET /cryptpad_websock
et HTTP/1.1", upstream: "http://***:3003/cryptpad_websocket", host: "***"
@Enteee
Copy link
Contributor Author

Enteee commented Aug 18, 2023

maybe related to: #1185

Enteee added a commit to Enteee/cryptpad that referenced this issue Aug 18, 2023
@Enteee
Copy link
Contributor Author

Enteee commented Aug 18, 2023

this commit Enteee@b58149b fixes the issue for me

@davidbenque
Copy link
Contributor

Related to #1182 which is fixed and will be released soon

@davidbenque davidbenque added this to the 5.4.1 milestone Aug 22, 2023
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

2 participants