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

Closed
opened 2021-12-10 20:53:49 +00:00 by 3wordchant · 1 comment
Owner

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).
3wordchant added the
enhancement
label 2021-12-10 20:53:49 +00:00
Author
Owner

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?
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: autonomic-cooperative/wordpress-bedrock-template#18
No description provided.