diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 12:17:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 12:18:26 +0200 |
commit | 80a6317ac55de020f606a5ca114466d3f0100511 (patch) | |
tree | 9bd5104c3f07cda2f07f3a783e71e1e5b948f943 /README.md | |
parent | 61b1ef398e275a110173ed77556ff211adc1ba82 (diff) |
Use travelynx.conf for configuration and secrets
This avoids having to specify secrets in the environment, where they can leak
easily.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |