aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-11 19:53:28 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-11 19:53:42 +0530
commitc9149558d4b8400839a4a65420bff77db962c53a (patch)
treead7305e591e5e81a502084929eb45559d7602461
parent1.3.12 [skip ci] (diff)
downloadferdium-server-c9149558d4b8400839a4a65420bff77db962c53a.tar.gz
ferdium-server-c9149558d4b8400839a4a65420bff77db962c53a.tar.zst
ferdium-server-c9149558d4b8400839a4a65420bff77db962c53a.zip
Fix the necessary env vars for building outside of docker
-rw-r--r--.env.example43
-rw-r--r--Dockerfile3
-rw-r--r--config/app.js2
3 files changed, 20 insertions, 28 deletions
diff --git a/.env.example b/.env.example
index 884ab50..a486df9 100644
--- a/.env.example
+++ b/.env.example
@@ -1,38 +1,31 @@
1HOST=127.0.0.1
2PORT=3333
3NODE_ENV=development 1NODE_ENV=development
4
5APP_NAME=Ferdium-server
6APP_URL=localhost 2APP_URL=localhost
7
8CACHE_VIEWS=false
9
10APP_KEY=
11
12DATA_DIR=data
13
14DB_CONNECTION=sqlite 3DB_CONNECTION=sqlite
15DB_HOST=127.0.0.1 4DB_HOST=127.0.0.1
16DB_PORT=3306 5DB_PORT=3306
17DB_USER=root 6DB_USER=root
18DB_PASSWORD= 7DB_PASSWORD=password
19DB_DATABASE=ferdium 8DB_DATABASE=ferdium
20DB_SSL=false 9DB_SSL=false
21
22PUID=1000
23PGID=1000
24
25HASH_DRIVER=bcrypt
26
27IS_CREATION_ENABLED=true
28IS_DASHBOARD_ENABLED=true
29IS_REGISTRATION_ENABLED=true
30CONNECT_WITH_FRANZ=true
31
32MAIL_CONNECTION=smtp 10MAIL_CONNECTION=smtp
33SMTP_PORT=2525
34SMTP_HOST=127.0.0.1 11SMTP_HOST=127.0.0.1
12SMTP_PORT=2525
13MAIL_SSL=false
35MAIL_USERNAME=username 14MAIL_USERNAME=username
36MAIL_PASSWORD=password 15MAIL_PASSWORD=password
37MAIL_SENDER=noreply@ferdium.org 16MAIL_SENDER=noreply@ferdium.org
38MAIL_SSL=true 17IS_CREATION_ENABLED=true
18IS_DASHBOARD_ENABLED=true
19IS_REGISTRATION_ENABLED=true
20CONNECT_WITH_FRANZ=false
21DATA_DIR=data
22PUID=1000
23PGID=1000
24
25# These are needed if running outside of Docker
26APP_KEY= # Need to set some value
27HOST=127.0.0.1
28PORT=3333
29
30# These have defaults hard-coded, but are being overridden
31CACHE_VIEWS=false
diff --git a/Dockerfile b/Dockerfile
index 9fba794..a65ccf1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,8 +19,7 @@ LABEL maintainer="ferdium"
19# TODO: Shouldn't we set 'NODE_ENV=production' when running in production mode? 19# TODO: Shouldn't we set 'NODE_ENV=production' when running in production mode?
20ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" 20ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data"
21 21
22RUN apk add --no-cache sqlite-libs curl su-exec 22RUN apk add --no-cache sqlite-libs curl su-exec python3 make g++ py3-pip git py3-pip
23RUN apk add --no-cache python3 make g++ py3-pip git py3-pip
24# The next command is needed for sqlite3 install command executed by node-gyp 23# The next command is needed for sqlite3 install command executed by node-gyp
25RUN ln -s /usr/bin/python3 /usr/bin/python 24RUN ln -s /usr/bin/python3 /usr/bin/python
26 25
diff --git a/config/app.js b/config/app.js
index 30e44f0..1951e68 100644
--- a/config/app.js
+++ b/config/app.js
@@ -15,7 +15,7 @@ module.exports = {
15 | 15 |
16 */ 16 */
17 17
18 name: Env.get('APP_NAME', 'AdonisJs'), 18 name: Env.get('APP_NAME', 'Ferdium-server'),
19 19
20 /* 20 /*
21 |-------------------------------------------------------------------------- 21 |--------------------------------------------------------------------------