Decide if we need an nginx.conf per-project #18

已关闭
3wordchant2021-12-10 20:53:49 +00:00创建 · 1 评论

The majority of wordpress docker projects I've seen out there assume that every different site will need its own special unique nginx.conf, so template repositories and docker stacks / Dockerfiles include one that can be easily customised. I.e. "yes".

Co-op Cloud currently assumes that different instances of "the same app" use the identical, or at most templated, webserver configuration files. Per-app configuration is somewhat-deliberately restricted to environment variables, with editing configuration file seen as a corner case (e.g. for nextcloud single sign-on config).

I'm also not sure I can imagine legitimate difference between the required webserver configuration of different websites, but maybe I'm just not thinking had enough.

So I currently lean towards "no", that we should have one shared file.


If we end up agreeing on "no", a follow-up question is -- how to implement that? One idea could be to build our own image that's basically just upstream nginx with one config file. Alternatively we could include the config file in the PHP container and copy it across in an entrypoint (not amazing security-wise in terms of permissions required).

The majority of wordpress docker projects I've seen out there assume that every different site will need its own special unique nginx.conf, so template repositories and docker stacks / Dockerfiles include one that can be easily customised. I.e. "yes". Co-op Cloud currently assumes that different instances of "the same app" use the identical, or at most templated, webserver configuration files. Per-app configuration is somewhat-deliberately restricted to environment variables, with editing configuration file seen as a corner case (e.g. for nextcloud single sign-on config). I'm also not sure I can imagine legitimate difference between the required webserver configuration of different websites, but maybe I'm just not thinking had enough. So I currently lean towards "no", that we should have one shared file. --- If we end up agreeing on "no", a follow-up question is -- how to implement that? One idea could be to build our own image that's basically just upstream `nginx` with one config file. Alternatively we could include the config file in the PHP container and copy it across in an entrypoint (not amazing security-wise in terms of permissions required).
3wordchant2021-12-10 20:53:49 +00:00 添加了标签
enhancement
作者

I think we're leaning towards "no". So, time to make a custom nginx image too?

I think we're leaning towards "no". So, time to make a custom nginx image too?
此仓库已存档,您不能在此工单添加评论。
没有提供说明。