2023-09-25 16:57:47 +00:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
Opengist provides flexible configuration options through either a YAML file and/or environment variables.
|
|
|
|
You would only need to specify the configuration options you want to change — for any config option left untouched,
|
|
|
|
Opengist will simply apply the default values.
|
|
|
|
|
|
|
|
The [configuration cheat sheet](cheat-sheet.md) lists all available configuration options.
|
|
|
|
|
|
|
|
|
|
|
|
## Configuration via YAML file
|
|
|
|
|
|
|
|
The configuration file must be specified when launching the application, using the `--config` flag followed by the path
|
|
|
|
to your YAML file.
|
|
|
|
|
2023-10-15 06:14:34 +00:00
|
|
|
Usage with Docker Compose :
|
|
|
|
```yml
|
|
|
|
services:
|
|
|
|
opengist:
|
|
|
|
# ...
|
|
|
|
volumes:
|
|
|
|
# ...
|
|
|
|
- "/path/to/config.yml:/config.yml"
|
|
|
|
```
|
|
|
|
|
|
|
|
Usage via command line :
|
2023-09-25 16:57:47 +00:00
|
|
|
```shell
|
|
|
|
./opengist --config /path/to/config.yml
|
|
|
|
```
|
|
|
|
|
2024-09-11 23:47:15 +00:00
|
|
|
You can start by copying and/or modifying the provided [config.yml](https://github.com/thomiceli/opengist/blob/stable/config.yml) file.
|
2023-09-25 16:57:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Configuration via Environment Variables
|
|
|
|
|
|
|
|
Usage with Docker Compose :
|
|
|
|
```yml
|
|
|
|
services:
|
|
|
|
opengist:
|
|
|
|
# ...
|
|
|
|
environment:
|
|
|
|
OG_LOG_LEVEL: "info"
|
|
|
|
# etc.
|
|
|
|
```
|
|
|
|
|
2023-10-15 06:14:34 +00:00
|
|
|
Usage via command line :
|
2023-09-25 16:57:47 +00:00
|
|
|
```shell
|
|
|
|
OG_LOG_LEVEL=info ./opengist
|
|
|
|
```
|