-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Control Plane API call to change username and password for basic …
…HTTP authentication (closes #117)
- Loading branch information
1 parent
f776b87
commit da65cbc
Showing
5 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
provisioning/resources/control-plane/scripts/submit_username_password_for_basic_auth.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
username=$1 | ||
password=$2 | ||
config_dir=$3 | ||
|
||
caddyfile_directory="$config_dir/Caddyfile" | ||
|
||
#add username and password to Caddyfile for basic auth | ||
sudo sed -i 's/\(.*basicauth\)\(.*\)/\1 "'$username'" "'$password'" {/' $caddyfile_directory | ||
|
||
sudo service caddy_init restart |
Binary file modified
BIN
+4.57 KB
(100%)
provisioning/resources/control-plane/snowplow-mini-control-plane-api
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters