Skip to content

/etc/nginx/conf.d/default.conf should be named 50-default.conf to help config file ordering #2593

@p12tic

Description

@p12tic

Currently nginx-proxy puts its configuration into a file named default.conf which is included via include /etc/nginx/conf.d/*.conf; directive. The nginx configuration is order dependent, thus if users rely on anything in default.conf being ordered before or after their config file, they must choose the name for the config file accordingly. Currently the name must be something that comes either before or after default.conf in alphabetical order. This is confusing.

A simple fix for this would be to rename the generated config file from default.conf to have some number prepended, such as 50-default.conf.

Please let me know if this issue is something for which a PR would be accepted. I would then go prepare one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions