GithubHelp home page GithubHelp logo

连接不上brook wssserver about brook HOT 7 OPEN

wyw1018 avatar wyw1018 commented on May 28, 2024
连接不上brook wssserver

from brook.

Comments (7)

txthinking-bot avatar txthinking-bot commented on May 28, 2024

这三个 pem 什么关系,reproduce steps?
by unknown

from brook.

txthinking avatar txthinking commented on May 28, 2024

https://github.com/txthinking/brook/blob/master/docs/example-zh.md#%E8%BF%90%E8%A1%8C-brook-wssserver-%E8%87%AA%E5%B7%B1%E7%AD%BE%E5%8F%91%E9%9D%9E%E4%BF%A1%E4%BB%BB%E8%AF%81%E4%B9%A6-%E7%94%9A%E8%87%B3%E4%B8%8D%E6%98%AF%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E5%9F%9F%E5%90%8D%E4%B9%9F%E5%8F%AF%E4%BB%A5

from brook.

wyw1018 avatar wyw1018 commented on May 28, 2024

ca.pem 是在本地电脑gitbash里用命令mad ca --ca ~/.nami/bin/ca.pem --key ~/.nami/bin/cakey.pem生成的。
cert.pem 和certkey.pem用mad cert --ca ~/.nami/bin/ca.pem --ca_key ~/.nami/bin/cakey.pem --cert ~/.nami/bin/cert.pem --key ~/.nami/bin/certkey.pem --domain xxxx.fly.dev生成的。
然后在dockerfile里面用COPY ~/.nami/bin/cert.pem /usr/local/share/ 和COPY ~/.nami/bin/certkey.pem /usr/local/share/复制到应用里面。dockefile里面还有FROM teddysun:latest EXPOSE 8080
toml文件里internal_port = 8080 services.port =80 和443 handlers分别是"http" 和 “tls, http"
ca.pem也安装到了本地windows系统的受信任的根证书颁发机构
感觉和你github的教程没区别,但就是出错

from brook.

txthinking avatar txthinking commented on May 28, 2024

看起来你似乎是在使用fly.io容器,不知道你的配置。不过我刚才试了一下部署了个 ipv6 wss正常.

jb https://bash.ooo/fly.js

https://github.com/txthinking/bash

from brook.

wyw1018 avatar wyw1018 commented on May 28, 2024

我看了你给的网址,可是toml文件是构造wsserver而不是wssserver
entrypoint = ["/brook", "wsserver", "--listen", ":8080", "--password", "${password}"]
而且根据你github说明wssserver的entrypoint里参数应该是--domainaddress 不是--listen

from brook.

txthinking avatar txthinking commented on May 28, 2024

是的你说的没错。但这样也可以造出来 wss,就是 ws + tls = wss,就像 ws + aws, 就像 ws + cloudflare, 就像 ws + fly (动手试一下就知道了啊)

from brook.

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.