From 6a53f7d4d3c8c63de25478ee3240d695f1015789 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Mon, 22 Jun 2020 17:02:25 +0100 Subject: [PATCH] Improve default configuration --- config/default.json | 8 ++++++-- config/docker.json | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/default.json b/config/default.json index ddd9db6..b3229de 100644 --- a/config/default.json +++ b/config/default.json @@ -1,10 +1,14 @@ { "name": "Paste", - "port": 3000, + "host": "0.0.0.0", + "port": 80, "db": "mongodb://localhost/paste", + "keys": [ + "random key here" + ], + "prettyHtml": true, "cacheAge": 86400, "sizeLimit": "2mb", - "prettyHtml": true, "expiresDefault": 604800, "expires": { "600": "10 minutes", diff --git a/config/docker.json b/config/docker.json index 49f2052..fef9e83 100644 --- a/config/docker.json +++ b/config/docker.json @@ -1,4 +1,3 @@ { - "port": 80, "db": "mongodb://db/paste" }