Skip to content

Commit

Permalink
docker-run.sh: unset GLDIR WEBUI* vars
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Aug 22, 2024
1 parent b00eef2 commit 96bf365
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,27 @@ Make sure your client's source ip is whitelisted. Default is 'allow' all private
- logs: nginx logs to stderr/stdout
- view access logs with `docker logs glftpd-web`

## Variables

Options can be set with environment variables, in docker-run.sh or docker-compose.yml.

Example:

env var in shell: `WEBUI_AUTH_MODE="both"`

edit docker-run\.sh: `WEBUI_AUTH_MODE="both"` _(default: "./glftpd")_

docker compose:
```
# add to docker-compose.yml
services:
web:
image: ghcr.io/silv3rr/docker-glftpd-web:latest
# <...>
environment:
WEBUI_AUTH_MODE="both"
```

## Troubleshooting

- "nothing happens", main page doesnt open, cant login etc
Expand Down
1 change: 1 addition & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if [ "${BUILD_GLFTPD:-0}" -eq 1 ]; then
fi

if [ "${INSTALL_WEBUI:-1}" -eq 1 ]; then
echo "Build image 'docker-glftpd-web'"
# shellcheck disable=SC2086
docker build \
$ARGS \
Expand Down
14 changes: 7 additions & 7 deletions docker-run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash

################################## ################################ #### # ##
# >> DOCKER-RUN-GLFTPD-V3 :: WEBUI
Expand All @@ -7,9 +7,9 @@
#
# GLDIR="<path>" basedir for bind mounts (default=./glftpd)
# ( to reuse existing install set to /glftpd )
# WEBUI_LOCAL=1 run commands on same host, no docker [0|1]
# WEBUI_AUTH_MODE="basic" auth mode [basic|glftpd|both|none]
# NETWORK="host" docker network mode [host|bridge]
# WEBUI_LOCAL=1 run commands on same host, no gl docker [0|1]
# WEBUI_AUTH_MODE="<mode>" auth mode [basic|glftpd|both|none] (basic)
# NETWORK="<network>" docker network mode [host|bridge] (bridge)
# FORCE=1 remove any existing container first [0|1]
#
# WEBUI_ARGS+= " --any-other-flags " add any other docker run options
Expand All @@ -18,12 +18,12 @@

#DEBUG=0

GLDIR="./glftpd"
#GLDIR="./glftpd"
GLFTPD=0

WEBUI=1
WEBUI_LOCAL=1
WEBUI_AUTH_MODE="basic"
#WEBUI_LOCAL=1
#WEBUI_AUTH_MODE="basic"
#NETWORK="host"

DOCKER_REGISTRY="ghcr.io/silv3rr"
Expand Down

0 comments on commit 96bf365

Please sign in to comment.