From 046989e3a3b98ffe316fa175fd3ac852a67b8874 Mon Sep 17 00:00:00 2001 From: Roland Bernard <rolbernard@unibz.it> Date: Thu, 20 May 2021 14:41:35 +0200 Subject: [PATCH] Updated the README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b57bff..8026138 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,11 @@ repository and execute the following three command in order: 3. `yarn start` This will start the web server and host the webserver at `localhost:8000` Note: - * The server requires a public and private key pair to sign the authentication web token. They can + * The server can use a public and private key pair to sign the authentication web token. They can either be placed into the directory `server/keys/` with the name `cert.pem` (public key) and `cert.key` (private key), or they can be given using the `JWT_PUBLIC_KEY` and `JWT_PRIVATE_KEY` -envirenvironment variables. In any case the keys must be suitable for ES384 signatures. +envirenvironment variables. In any case the keys must be suitable for ES384 signatures. If these +keys are not given it will use a simple password to sign the tokens. * If your `PORT` environment variable is set that will be used as the port to host the webserver in stead of port 8000. * If your `NODE_ENV` environment variable is set to `production` (with SSL) or `staging` (without SSL) the server will try to connect to a postgres database using the connection url inside `DATABASE_URL`. -- GitLab