Skip to content

Determine how nginx configs could be configured per-site #59

Closed

Description

@tannerjfco

What happened (or feature request):

Feature Request

Currently, we provide a pre-configured site config for nginx in the container that largely works for drupal or wordpress sites. We do not provide a way that a user would be able to change an nginx configuration with any persistence.

What you expected to happen:

There are a variety of reasons why an nginx configuration might need to change specifically for a site, so overall I believe we will need to expose a way to alter the nginx configurations for a site.

Anything else do we need to know:

We do not yet have an understanding of what circumstances could require that the nginx configuration change for a site. There are a couple we do know about at least to some extent:

  • For drupal, if the public files dir is a non-standard path (e.g. sites/default/files, then the rewrite rule supporting image styles needs to be updated.
  • Wordpress similarly allows its uploads folder to be a configurable path. While we currently have no nginx rules related to this path, its possible there are considerations here we're not aware of.
  • Various plugins or modules could require additional rewrite rules
  • Sites sometimes need to define rules specific to their function

Based on those and other circumstances we hopefully uncover, we will need to define what level of customization is appropriate to provide, and what that implementation will look like.

Related source links or issues:

The discussion surrounding #57 is where we identified this as something we will need to address eventually, but not in the scope of 0.1/0.2 milestones.

Activity

  1. cyberswat commented on Mar 21, 2017

    @cyberswat
    Contributor

    @beeradb @rfay Can you help us explore this request so that it can become actionable?

  2. added this to the milestone on May 3, 2017
  3. rickmanelius commented on May 3, 2017

    @rickmanelius
    Contributor

    Related to #195

  4. tannerjfco commented on May 12, 2017

    @tannerjfco
    ContributorAuthor

    This relates to #189, and could potentially addressed with the same underlying solution.

  5. modified the milestones: , , on May 26, 2017
  6. rickmanelius commented on Jun 2, 2017

    @rickmanelius
    Contributor

    One alternative approach to consider. One of the tenets of Docker, as I understand it, is that of inheritance of containers. So we have two options:

    • Have a default container configuration and allow ddev to override those through ddev's config.yml.
    • Have a default container configuration and use an override Docker config.

    Thoughts?

  7. tannerjfco commented on Jun 15, 2017

    @tannerjfco
    ContributorAuthor

    This was addressed in #314 with ability to override nginx config with user-provided version in .ddev directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions