From 404329f459128f1581e42fe580fd14b16a7a22be Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Sun, 22 Nov 2020 22:17:38 +0100 Subject: [PATCH 1/2] Set secret, basePath and data.path from environment variables --- conf/application.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/application.conf b/conf/application.conf index 3d8f3262..89f63a61 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -1,9 +1,11 @@ # Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities. # It is highly recommended to change this value before running cerebro in production. secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N" +secret = ${?CEREBRO_COOKIE_SECRET} # Application base path basePath = "/" +basePath = ${?CEREBRO_BASE_PATH} # Defaults to RUNNING_PID at the root directory of the app. # To avoid creating a PID file set this value to /dev/null @@ -16,6 +18,7 @@ rest.history.size = 50 // defaults to 50 if not specified # Path of local database file #data.path: "/var/lib/cerebro/cerebro.db" data.path = "./cerebro.db" +data.path = ${?CEREBRO_DATA_PATH} play { # Cerebro port, by default it's 9000 (play's default) From 4cf654bd2f7580b3dc10d2b68f29bae42a59cb4f Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Sun, 13 Dec 2020 18:26:38 +0100 Subject: [PATCH 2/2] Added ws.ssl.loose.acceptAnyCertificate from ENV --- conf/application.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/application.conf b/conf/application.conf index 89f63a61..506f00b7 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -23,6 +23,8 @@ data.path = ${?CEREBRO_DATA_PATH} play { # Cerebro port, by default it's 9000 (play's default) server.http.port = ${?CEREBRO_PORT} + ws.ssl.loose.acceptAnyCertificate = false + ws.ssl.loose.acceptAnyCertificate = ${?CEREBRO_ACCEPTANYCERT} } es = {