- PHP 99.7%
- Dockerfile 0.3%
| .github | ||
| .gitattributes | ||
| .gitignore | ||
| Dockerfile | ||
| LICENSE | ||
| pwd.html | ||
| README.md | ||
| sample.env | ||
| screenshot.gif | ||
| SECURITY.md | ||
| tinyfilemanager.php | ||
| translation.json | ||
Tiny File Manager
This repository is built on top of prasathmani/tinyfilemanager. The manager can be ran using PHP, Docker, or Kubernetes.
Adding Users
Caution
Do not use the example passwords in production environments, use the Password Generator to create unique passwords. Default username/password: admin/admin@123 and user/12345.
-
If running locally users can be added by setting the
USERSJSON object array environment variable insample.env, rename this to.env.#inside .env USERS='{"admin": "ADMIN_PASSWORD_HASH","user": "USER_PASSWORD_HAS"}' -
Set the environment variable
USERSusing a JSON object array'{"USER_NAME": "PASSWORD_HASH"}'.a. Docker Compose - set in the
docker-compose.ymlb. Docker - set on the system or pass in the value c. Kubernetes - in the deployment YAML set using a secret withenvFromor as an environment variable
To enable/disable authentication set $use_auth to true or false.
How to run
Run it locally within the directory with PHP.
```bash
# use the development server
php -S localhost:8080
```
For Docker, set the USERS environment variable in the system or pass in the value.
```bash
docker run --name tfm -p 8080:80 britslampe/tfm:2.0
# OR
docker run --name tfm --env USERS='{"admin": "ADMIN_PASSWORD_HASH"}' -p 8080:80 britslampe/tfm:2.0
```