Configuration File in InfluxDB


Is it possible to put a configuration file in the influxdb to read the constant variables

If you mean to configure influxd (the database server), yes. See InfluxDB configuration options | InfluxDB OSS v2 Documentation

If you mean a connection profile for the influx CLI, the CLI loads your credentials from a config file. You can use the --configs-path option to specify a different file. You can override those by setting environment variables in your shell. See influx - InfluxDB command line interface | InfluxDB OSS v2 Documentation

Edited: --configs-path

Sorry, the influx --configs-path option