Bargate utilises two configuration files:
- bargate.conf - the main configuration file
- shares.conf - a list of file shares your users can access
On startup bargate looks in the following locations for a config file:
Once it finds a config file it stops searching, e.g. if /etc/bargate.conf exists then the other config file locations are not checked.
Once you have installed bargate you will need to create a configuration file. Copy the sample config file to get started:
mkdir /etc/bargate cp /opt/bargate/doc/bargate.conf.example /etc/bargate/bargate.conf
The above command assumes you installed bargate into /opt/bargate
The minimum options you’ll need to set are:
bargate.conf is treated as a Python file - all configuration must adhere to Python syntax.
See Configuration options for a complete list of options to set.