当为它做任何尝试aws:elasticbeanstalk:environment:proxy:staticfiles时都是行不通的。每次我收到有关无效选项规范的错误时。所有其余的 ebextensions 设置都像魅力一样工作。
我尝试的示例片段:
option_settings:
aws:elasticbeanstalk:environment:proxy:staticfiles:
/stylesheets: public/stylesheets
/fonts: public/fonts
/html: public/html
错误eb deploy:
2021-04-09 08:12:02 ERROR "option_settings" in one of the configuration files failed validation. More details to follow.
2021-04-09 08:12:02 ERROR Invalid option specification (Namespace: 'aws:elasticbeanstalk:environment:proxy:staticfiles', OptionName: '/stylesheets'): Unknown configuration setting.
...
在 64 位 Amazon Linux 2 版本 3.2.6 上运行带有 Docker 的 EB 平台。我开始怀疑该staticfiles平台出于某种原因不支持此规范,但我爬过 AWS EB 文档寻求任何提示,但没有成功。有趣的是,Web 控制台 UI 中也没有静态文件部分。
我尝试了每一种配置风格——斜杠、引号、不同的路径集......没有任何效果。