forked from mirrors/fancyindex
commit
5a47941238
3 changed files with 6 additions and 3 deletions
|
@ -2,7 +2,8 @@ FROM nginx:1.15
|
|||
LABEL maintainer "fraoustin@gmail.com"
|
||||
|
||||
ENV SET_CONTAINER_TIMEZONE false
|
||||
ENV CONTAINER_TIMEZONE ""
|
||||
ENV CONTAINER_TIMEZONE ""
|
||||
ENV DISABLE_AUTH false
|
||||
|
||||
# manage user www-data
|
||||
RUN usermod -u 1000 www-data
|
||||
|
|
|
@ -16,6 +16,7 @@ load when start image load file in
|
|||
|
||||
- SET_CONTAINER_TIMEZONE (false or true) manage time of container
|
||||
- CONTAINER_TIMEZONE timezone of container
|
||||
- DISABLE_AUTH (false or true) allows you to disable auth on nginx
|
||||
- WEBUSER (default user)
|
||||
- WEBPASSWORD (default pass)
|
||||
- COLOR (default blue) for web ihm (blue, green, grey, greydark, orange, purple, red)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -z "$WEBUSER" ]; then
|
||||
if [ "$DISABLE_AUTH" == true ]; then
|
||||
sed -i '/auth_basic/s/^/#/' /etc/nginx/conf.d/default.conf
|
||||
elif [ ! -z "$WEBUSER" ]; then
|
||||
addauth $WEBUSER $WEBPASSWORD
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue