user:$apr1$TCSj3uFG$x3fNG4H6gvuxvNu5UMo3i/
(username: "user", password: "user")
location / {
+ auth_basic "Restricted Content";
+ auth_basic_user_file /etc/nginx/.htpasswd;
+
{{- if getenv "NGINX_DRUPAL_FILE_PROXY_URL" }}
location ~* /sites/.+/files {
try_files $uri @file_proxy;
(use the latest source but this version was used when the demo was made)
services:
# @see https://github.com/wodby/nginx/tree/5.25.6#custom-preset
webserver:
volumes:
- ./.htpasswd:/etc/nginx/.htpasswd
- ./drupal9-custom.conf.tmpl:/etc/gotpl/presets/drupal9-custom.conf.tmpl
environment:
NGINX_VHOST_PRESET: drupal9-custom