我想在 Amazon Elastic Beanstalk 上使用 ebextension 配置 nginx 配置,
conf的内容如下:
files:
"/etc/nginx/conf.d/custom-nginx-proxy.conf" :
mode: "000755"
owner: "root"
group: "root"
content: |
client_max_body_size 60M;
contatiner_commands:
reload_nginx:
command: "sudo service nginx reload"
但总是得到关于内容的错误,
nginx:[emerg] 未知指令“文件:”在 /var/elasticbeanstalk/staging/nginx/conf.d/custom-nginx-proxy.conf:7
我把这个文件放在
ROOT.war
|- ROOT/
|- .ebextensions
|- nginx
|- conf.d
|- custom-nginx-proxy.conf
|- Others content