Skip to content

Commit

Permalink
- read apache authentication from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 authored and PascalLike committed Aug 9, 2023
1 parent a1048e4 commit 2f0a578
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apache-httpd/httpd-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ SSLRandomSeed connect builtin
Allow from all
Authtype Basic
Authname "Password Required"
AuthUserFile /etc/apache2/.htpasswd
AuthUserFile /usr/local/apache2/.htpasswd
Require valid-user
</Location>

Expand Down
2 changes: 1 addition & 1 deletion apache-httpd/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ SSLRandomSeed connect builtin
Allow from all
Authtype Basic
Authname "Password Required"
AuthUserFile /etc/apache2/.htpasswd
AuthUserFile /usr/local/apache2/.htpasswd
Require valid-user
</Location>

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ services:
- frost
volumes:
- ./apache-httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./apache-httpd/.htpasswd:/etc/apache2/.htpasswd
ports:
- "80:80"
- "443:443"
command: sh -c "/usr/local/apache2/bin/htpasswd -b -c /usr/local/apache2/.htpasswd $FROST_USER $FROST_PASSWORD && httpd-foreground"
container_name: apache-httpd

pygeoapi:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ services:
- "/etc/letsencrypt/archive/oldskool.byteroad.net/fullchain3.pem:/usr/local/apache2/conf/oldskool/fullchain1.pem"
- "/etc/letsencrypt/archive/oldskool.byteroad.net/privkey3.pem:/usr/local/apache2/conf/oldskool/privkey1.pem"
- ./apache-httpd/httpd-ssl.conf:/usr/local/apache2/conf/httpd.conf
- ./apache-httpd/.htpasswd:/etc/apache2/.htpasswd
ports:
- "80:80"
- "443:443"
command: sh -c "/usr/local/apache2/bin/htpasswd -b -c /usr/local/apache2/.htpasswd $FROST_USER $FROST_PASSWORD && httpd-foreground"
container_name: apache-httpd

frost:
Expand Down

0 comments on commit 2f0a578

Please sign in to comment.