Decide if we need an nginx.conf per-project #18
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: autonomic-cooperative/wordpress-bedrock-template#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).I think we're leaning towards "no". So, time to make a custom nginx image too?