diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-13 21:03:57 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-13 21:03:57 -0500 |
| commit | e10d995746585f2e25d58645262167654a718870 (patch) | |
| tree | 24c6afafb54bf5f6d7f68eb81d86b58e805762d8 /opt/auth.sh | |
| parent | 00dffa8cf5cac8322cb47f2222e424d3960e7939 (diff) | |
| download | cgit-docker-e10d995746585f2e25d58645262167654a718870.tar.gz cgit-docker-e10d995746585f2e25d58645262167654a718870.tar.bz2 cgit-docker-e10d995746585f2e25d58645262167654a718870.zip | |
opt/auth.sh dissolved into entrypoint.
Diffstat (limited to 'opt/auth.sh')
| -rw-r--r-- | opt/auth.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/opt/auth.sh b/opt/auth.sh deleted file mode 100644 index 6d87868..0000000 --- a/opt/auth.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Check if we're enabling basic auth. -if [ "$HTTP_AUTH_PASSWORD" != "" ]; then - echo "AuthType Basic -AuthName \"CGit\" -AuthUserFile /srv/www/htdocs/cgit/.htpasswd -Require valid-user" > /srv/www/htdocs/cgit/.htaccess -htpasswd -c -b /srv/www/htdocs/cgit/.htpasswd $HTTP_AUTH_USER $HTTP_AUTH_PASSWORD -fi
\ No newline at end of file |
