summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-13 12:17:19 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-13 12:18:26 +0200
commit80a6317ac55de020f606a5ca114466d3f0100511 (patch)
tree9bd5104c3f07cda2f07f3a783e71e1e5b948f943 /README.md
parent61b1ef398e275a110173ed77556ff211adc1ba82 (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.md5
1 files changed, 3 insertions, 2 deletions
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