Next: , Previous: , Up: Top   [Contents][Index]


5 Configuration

Please refer to the comments in the trip-server-dist.yaml file for information on the application’s configuration parameters.

By default the application looks for its configuration file under the installation prefix (usually /usr/local) named ./etc/trip-server.yaml. Alternatively, it can be overridden with the --config-file command line option.

The configuration file should be readable by the user running trip-server, e.g. trip, but not world-readable.

On a Debian system, you can create a system user to run the application as follows:

$ sudo adduser trip --system --group --home /nonexistent \
--no-create-home

On other systems, you will probably need to use the less friendly useradd command.

Run trip-server using the trip user and set the file permissions as follows:

$ sudo chmod 0640 /usr/local/etc/trip-server.yaml
$ sudo chown trip:trip /usr/local/etc/trip-server.yaml

Refer to the Vagrant configurations in the source distribution of trip-server, under the ./provisioning directories for information relating to configuring and running the application as a daemon under systemd.