MongoosePush/ mod_push MongooseIM docker 运行 不工作

MongoosePush/ mod_push MongooseIM docker run not working

我正在尝试为 mongooseIM 服务器配置 mod_push。我取得了一些成功,但是当我 运行 docker 它给出了错误。我正在关注这个文档: https://mongooseim.readthedocs.io/en/latest/user-guide/Push-notifications/

我的命令是这样的:

docker run -v /home/ubuntu/MongooseIM/priv:/opt/app/priv   -e PUSH_FCM_APP_KEY="AAAA5y_R5rA:APA91bGUmR7xsghMfgpudP64lt1JdJ2XBqxYLijGerdIaLI7Z4ZXqYfVRYjqKIUm6opCvEvS5H8m_KEtr9J_VRJlX9Ge7U-U5S2dasjjx0LtxQfjCSddhwxYXgR4goX8fBStIdoYikYM"   -e PUSH_HTTPS_CERTFILE="/opt/app/priv/ssl/server.pem"   -e PUSH_HTTPS_KEYFILE="/opt/app/priv/ssl/server.key"   -it --rm mongooseim/mongoose-push:latest

然后出现错误:

{"Kernel pid terminated",application_controller,"{application_start_failure,丸,{bad_return,{{'Elixir.Maru',开始,[正常,[] ]},{'EXIT',{#{'exception' => true,'struct' => 'Elixir.ArgumentError' ,message => <<\"could not start Cowboy adapter, the file /opt/app/priv/ssl/server.key required by SSL's :keyfile either does not exist, or the application does not have permission to access it\">>},[{'Elixir.Plug.Adapters.Cowboy',fail,1,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,245}]},{'Elixir.Plug.Adapters.Cowboy',put_ssl_file,3,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,222}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,[{file,\"lib/enum.ex\"},{line,1755}]},{'Elixir.Plug.Adapters.Cowboy',normalize_cowboy_options,2,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,167}]},{'Elixir.Plug.Adapters.Cowboy',args,4,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,49}]},{'Elixir.Plug.Adapters.Cowboy' ,child_spec,4,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,137}]},{'Elixir.Maru','-start/2-fun-0-',4,[{ file,\"lib/maru.ex\"},{line,32}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,[{file,\"lib/enum.ex\"},{line,1755}]}]}}}}}"} 内核 pid 终止 (application_controller) ({application_start_failure,maru,{bad_return,{{'Elixir.Maru',start,[normal,[]]},{'EXIT',{#{'exception' => true,'struct' => 'Elixir.ArgumentError'

我已经解决了这个问题,请看这个link:

https://github.com/esl/MongoosePush/issues/26