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 images已经生成,请问运行命令是什么呢? #9

Open
PHCSJC opened this issue Oct 19, 2021 · 2 comments
Open

docker images已经生成,请问运行命令是什么呢? #9

PHCSJC opened this issue Oct 19, 2021 · 2 comments

Comments

@PHCSJC
Copy link

PHCSJC commented Oct 19, 2021

比如我的域名是www.abc.com,要反代google,请问docker容器的创建命令是什么呢?我是运行在自己的vps上,谢谢!

@PHCSJC PHCSJC changed the title docker运行错误,请大佬指点 docker images已经生成,请问运行命令是什么呢? Oct 19, 2021
@PHCSJC
Copy link
Author

PHCSJC commented Oct 19, 2021

明白了,配置下config.yaml就可以了,还是有个问题,就是http可以访问,https访问不了,用curl的返回信息是:
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

@WincerChan
Copy link
Owner

因为在本地监听的 3000 端口没有添加 TLS 证书:https://github.com/WincerChan/mirror/blob/master/index.go#L100
所以采用 https 的协议方式是无法访问的,
如果想要本地支持 https 访问的话,需要自己签一张证书,然后用 http.ListenAndServeTLS 监听 443 端口即可。

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