【问题标题】:How can I see the nginx configration used by my heroku app?如何查看我的 heroku 应用程序使用的 nginx 配置?
【发布时间】:2017-04-18 13:40:19
【问题描述】:

我正在尝试在 AWS Elastic Beanstalk 上配置我的应用程序,但我遇到了 nginx 不为公共资产提供服务的问题。

我想看看我的 heroku 应用程序的 nginx 配置,看看他们在做什么。这可能吗?

【问题讨论】:

    标签: nginx heroku


    【解决方案1】:

    您可以使用 nginx-buildpack 设置 heroku 的 nginx 配置

    阅读:https://elements.heroku.com/buildpacks/maximzxc/nginx-buildpack#buildpack-instructions

    并参考这个文件https://github.com/maximzxc/nginx-buildpack/blob/master/config/nginx.conf.erb

    另请阅读可自定义的 NGINX 配置

    您可以通过在应用程序的配置目录中创建一个名为 nginx.conf.erb 的文件来提供自己的 NGINX 配置。首先复制 buildpack 的默认配置文件。

    你可以使用命令heroku config查看整个heroku配置

    【讨论】:

      猜你喜欢
      • 2018-01-28
      • 2020-07-13
      • 1970-01-01
      • 2016-11-16
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 2023-03-17
      • 2013-04-12
      相关资源
      最近更新 更多