【发布时间】:2015-03-22 02:19:49
【问题描述】:
我正在尝试在弹性 beanstalk Docker 实例上配置 nginx 以允许使用 websocket。使用 here 找到的信息,我将 .ebextensions/01_files.config 添加到我正在部署的 zip 中。
该 zip 包含 .ebextensions/01_files.config、一个 Dockerfile 和我的应用程序的 tgz。
01_files.config的内容如下:
files:
"/etc/nginx/conf.d/websocketupgrade.conf" :
mode: "000755"
owner: root
group: root
content: |
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Elastic beanstalk 似乎忽略了我的 .ebextensions。文件 /etc/nginx/conf.d/websocketupgrade.conf 永远不会被写入。
在弹性 beantalk 上将 .ebextensions 与 Docker 容器一起使用的正确方法是什么?
【问题讨论】:
标签: amazon-web-services nginx websocket docker amazon-elastic-beanstalk