Skip to content

BasicAuth for NGINX #86

@dejanlaco

Description

@dejanlaco

Hi, BasicAuth works fine with apache, I think:

https://github.com/docksal/ci-agent/blob/develop/base/bin/build-init#L72

but for NGINX different syntax should be used:
https://docs.docksal.io/service/web/http-auth/

NGINX_BASIC_AUTH_USER=user
NGINX_BASIC_AUTH_PASS=password

any idea how we can implement it?
Maybe one check if web uses APACHE or NGINX, and based on that add NGINX_BASIC_AUTH_* or APACHE_BASIC_AUTH_* setting... Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions