From 80a6317ac55de020f606a5ca114466d3f0100511 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Apr 2019 12:17:19 +0200 Subject: Use travelynx.conf for configuration and secrets This avoids having to specify secrets in the environment, where they can leak easily. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 317ced8..78ced86 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,9 @@ Debian 9 system, though setup on other distribution should be similar. * Create a postgres user for travelynx: `sudo -u postgres createuser -P travelynx` (enter password when prompted) * Create the database: `sudo -u postgres createdb -O travelynx travelynx` -* Initialize the database: `TRAVELYNX_DB_HOST=... TRAVELYNX_DB_NAME=... ` - `TRAVELYNX_DB_USER=... TRAVELYNX_DB_PASSWORD=... perl index.pl setup` +* Copy `examples/travelynx.conf` to the application root directory + (the one in which `index.pl` resides) and configure it +* Initialize the database: `perl index.pl database setup` Your server also needs to be able to send mail. Set up your MTA of choice and make sure that the sendmail binary can be used for outgoing mails. Mail -- cgit v1.2.3