Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 467 Bytes

custom_includes.md

File metadata and controls

13 lines (10 loc) · 467 Bytes

nginx_custom_includes

With nginx_custom_includes it is possible to store a freely definable file under /etc/nginx/includes.d to be able to use it later (e.g. in the VHost definitions).

In this way, for example, a BasicAuth configuration can be stored in a central location.

nginx_custom_includes:
  basic_auth.conf: |
    auth_basic           "Administrator’s Area";
    auth_basic_user_file "{{ htpasswd_credentials_path }}/ba.passwdfile";