No description
  • PHP 99.7%
  • Dockerfile 0.3%
Find a file
2025-12-20 20:05:37 -06:00
.github publish additional docker tags (#975) 2023-02-22 13:06:26 +05:30
.gitattributes tell git to always commit .php in unix-newlines (#1017) 2023-04-11 07:51:47 +05:30
.gitignore Add user environment variable support 2025-12-20 20:05:37 -06:00
Dockerfile Add user environment variable support 2025-12-20 20:05:37 -06:00
LICENSE Create LICENSE 2017-11-05 16:29:41 +05:30
pwd.html Add user environment variable support 2025-12-20 20:05:37 -06:00
README.md Add user environment variable support 2025-12-20 20:05:37 -06:00
sample.env Add user environment variable support 2025-12-20 20:05:37 -06:00
screenshot.gif update screenshot 2022-12-03 12:07:18 +05:30
SECURITY.md Update SECURITY.md (#1231) 2024-09-16 11:17:50 +05:30
tinyfilemanager.php Add user environment variable support 2025-12-20 20:05:37 -06:00
translation.json Add Portuguese from Portugal (#1326) 2025-06-16 10:29:04 +05:30

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.

  1. If running locally users can be added by setting the USERS JSON object array environment variable in sample.env, rename this to .env.

    #inside .env
    USERS='{"admin": "ADMIN_PASSWORD_HASH","user": "USER_PASSWORD_HAS"}'
    
  2. Set the environment variable USERS using a JSON object array '{"USER_NAME": "PASSWORD_HASH"}'.

    a. Docker Compose - set in the docker-compose.yml b. Docker - set on the system or pass in the value c. Kubernetes - in the deployment YAML set using a secret with envFrom or 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

```