docker build -t your/jirafeau:latest .
```
+## Docker Compose
+
+You can use the `docker-compose.yaml` from [here](../docker-compose.yaml)
+
+### Custom Theme
+
+1. copy the theme data from the running container
+
+ ```sh
+ docker compose cp web:/www/media jirafeau_media
+ ```
+
+2. mount the theme data
+
+ ```yaml
+ #....
+ volumes:
+ - ./jirafeau_media/your_theme:/www/media/your_theme
+ ```
+
+3. set the environment variable
+
+ ```yaml
+ # ....
+ environment:
+ STYLE: 'your_theme'
+ DARK_STYLE: 'your_theme'
+ ```
+
+4. run the compose file
+
+ ```sh
+ docker compose up -d
+ ```
+
## Security
You may be interested in running Jirafeau on port 80:
More details about options in `lib/config.original.php`.
Available options:
+
- `ADMIN_PASSWORD`: setup a specific admin password. If not set, a random password will be generated.
- `ADMIN_IP`: set one or more ip allowed to access admin interface (separated by comma).
- `LANG`: choose the language for jirafeau (default auto).
return true;
}
-function env_2_cfg_string_array_key_value(&$cfg, $config_name)
+function env_2_cfg_array_from_json(&$cfg, $config_name)
{
$env_name = strtoupper($config_name);
$env_string = getenv($env_name);
env_2_cfg_string_array($cfg, 'upload_ip_nopassword');
env_2_cfg_string_array($cfg, 'proxy_ip');
// this is a key value based value
- env_2_cfg_string_array_key_value($cfg, 'availabilities');
+ env_2_cfg_array_from_json($cfg, 'availabilities');
env_2_cfg_bool($cfg, 'store_uploader_ip');
env_2_cfg_string($cfg, 'download_password_requirement');
env_2_cfg_int($cfg, 'download_password_gen_len');