diff --git a/documentation/configuration.md b/documentation/configuration.md index 4b4a083c..2db69a8a 100644 --- a/documentation/configuration.md +++ b/documentation/configuration.md @@ -1514,7 +1514,7 @@ For each service there might be some other settings, such as controlling the num | [**_File Browser_**](./services/file-browser.md)     ![x86-64](./images/x86-64.png) | | | | | | | `FILE_BROWSER_enable` | `false` | 1.11.0 | Generate Filebrowser service | | `FILE_BROWSER_user` | `admin` | 1.18.0 | The first user to create. | -| `FILE_BROWSER_password` | `admin` | 1.18.0 | The hashed password (bcrypt) for the first user. You can use to encrypt the password. | +| `FILE_BROWSER_password` | `admin` | 1.18.0 | The hashed password (bcrypt) for the first user. You can generate a password using `filebrowser hash ` or in docker `docker run -ti --rm hurlenko/filebrowser hash `. | | [**_WeTTY_**](./services/wetty.md)     ![x86-64](./images/x86-64.png) | | | | | | | `WETTY_enable` | `false` | 1.9.0 | Generate WeTTY service (Terminal over HTTP) | | [**_Raneto_**](./services/raneto.md)     ![x86-64](./images/x86-64.png) | | | | diff --git a/documentation/services/filebrowser.md b/documentation/services/filebrowser.md index ba7782f0..1e8edf1d 100644 --- a/documentation/services/filebrowser.md +++ b/documentation/services/filebrowser.md @@ -13,4 +13,14 @@ platys gen ## How to use it? -Navigate to and login with the default user `admin` and password `admin`. \ No newline at end of file +Navigate to and login with the default user `admin` and password `admin`. + +### Changing password + +Add to `config.yml` + +``` +FB_PASSWORD= +``` + +To encrypt the password, you can run `docker run -ti hurlenko/filebrowser hash `. \ No newline at end of file diff --git a/modern-data-platform-stack/generator-config/templates/docker-compose.yml.j2 b/modern-data-platform-stack/generator-config/templates/docker-compose.yml.j2 index f69a4427..246b5bbe 100755 --- a/modern-data-platform-stack/generator-config/templates/docker-compose.yml.j2 +++ b/modern-data-platform-stack/generator-config/templates/docker-compose.yml.j2 @@ -12763,7 +12763,7 @@ services: environment: - REDIS_HOST=redis-1 - REDIS_PORT=6379 - - REDIS_PASSWORD='abc123!' + - REDIS_PASSWORD={{REDIS_password if REDIS_password is defined and REDIS_password and REDIS_password | length else omit}} - REDIS_DB=0 {%if use_timezone | default(false) %} - TZ={{use_timezone}} diff --git a/modern-data-platform-stack/generator-config/vars/config.yml b/modern-data-platform-stack/generator-config/vars/config.yml index f58ee6aa..c47bde8d 100644 --- a/modern-data-platform-stack/generator-config/vars/config.yml +++ b/modern-data-platform-stack/generator-config/vars/config.yml @@ -2408,6 +2408,7 @@ FILE_BROWSER_enable: false FILE_BROWSER_volume_map_data: false FILE_BROWSER_user: admin + # must be bcrypt encrypted: 'docker run -ti hurlenko/filebrowser hash ' to encrypt FILE_BROWSER_password: #