Skip to content

Commit

Permalink
fix for basic auth exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
adgud committed Jan 16, 2024
1 parent 6d04d67 commit 0a49daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/prepare-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sed -e "s/GRAFANA_SLACK_RECIPIENT/$GRAFANA_SLACK_RECIPIENT/" \
# nginx config for frontend optional basic auth
nginx_config_dir="$target_config_dir/nginx"
mkdir -p "$nginx_config_dir"
if [[ "$DOMAIN" == *"govtool.byron.network"* ]]; then
if [[ "$DOMAIN" == *"sanchonet.govtool.byron.network"* ]]; then
cat >"$nginx_config_dir/auth.conf" <<_EOF_
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/govtool.htpasswd;
Expand All @@ -91,4 +91,4 @@ else
# create empty files if no basic auth is needed
touch "$nginx_config_dir/auth.conf"
touch "$nginx_config_dir/govtool.htpasswd"
fi
fi

0 comments on commit 0a49daf

Please sign in to comment.