Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic auth #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 4.0/.httpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test:$apr1$2mlvEUbA$7Ku8DGVwC5lqBAbJaqV0S/
2 changes: 2 additions & 0 deletions 4.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ FROM scratch

COPY --from=build / /

COPY ./.httpasswd /etc/apache2/.httpasswd

# Please override this
ENV NOMINATIM_PASSWORD qaIACxO6wMR3
# how many threads should be use for importing
Expand Down
5 changes: 4 additions & 1 deletion 4.0/conf.d/apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ Listen 8080
<Directory /nominatim/website>
Options FollowSymLinks MultiViews
DirectoryIndex search.php
Require all granted
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.httpasswd
Require valid-user
</Directory>
AddType text/html .php
</VirtualHost>