awesometic / docker-h5ai

Lightweight h5ai 0.30.0 container with Nginx 1.21 & PHP 8 based on Alpine Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple users

lephtHanded opened this issue · comments

not an issue, this works great!
I use it to share photos with my family.
Anyway to add more unique users/passwords?

Hello,

We can add more users by using htpasswd command.

Get the container's shell and try to add the users.

docker exec -it {H5AI_CONTAINER_NAME} /bin/bash

Then add a user using htpasswd command. Here's our case.

htpasswd /config/nginx/.htpasswd {NEW_USER_NAME}

Then, in my test environment, I can see multiple users in the /config/nginx/.htpasswd file.

$ cat /config/nginx/.htpasswd
guest:$apr1$w0Vseerb$dFLDY...
awesometic:$apr1$yqTtlN9h$FCRn...

You can see further information here: https://httpd.apache.org/docs/current/en/programs/htpasswd.html

Please try this and let me know the results. 😃

this worked great!
thank you so much!

Thanks for confirming. 😄