diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-12-11 19:53:28 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-12-11 19:53:42 +0530 |
commit | c9149558d4b8400839a4a65420bff77db962c53a (patch) | |
tree | ad7305e591e5e81a502084929eb45559d7602461 | |
parent | 1.3.12 [skip ci] (diff) | |
download | ferdium-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.example | 43 | ||||
-rw-r--r-- | Dockerfile | 3 | ||||
-rw-r--r-- | config/app.js | 2 |
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 @@ | |||
1 | HOST=127.0.0.1 | ||
2 | PORT=3333 | ||
3 | NODE_ENV=development | 1 | NODE_ENV=development |
4 | |||
5 | APP_NAME=Ferdium-server | ||
6 | APP_URL=localhost | 2 | APP_URL=localhost |
7 | |||
8 | CACHE_VIEWS=false | ||
9 | |||
10 | APP_KEY= | ||
11 | |||
12 | DATA_DIR=data | ||
13 | |||
14 | DB_CONNECTION=sqlite | 3 | DB_CONNECTION=sqlite |
15 | DB_HOST=127.0.0.1 | 4 | DB_HOST=127.0.0.1 |
16 | DB_PORT=3306 | 5 | DB_PORT=3306 |
17 | DB_USER=root | 6 | DB_USER=root |
18 | DB_PASSWORD= | 7 | DB_PASSWORD=password |
19 | DB_DATABASE=ferdium | 8 | DB_DATABASE=ferdium |
20 | DB_SSL=false | 9 | DB_SSL=false |
21 | |||
22 | PUID=1000 | ||
23 | PGID=1000 | ||
24 | |||
25 | HASH_DRIVER=bcrypt | ||
26 | |||
27 | IS_CREATION_ENABLED=true | ||
28 | IS_DASHBOARD_ENABLED=true | ||
29 | IS_REGISTRATION_ENABLED=true | ||
30 | CONNECT_WITH_FRANZ=true | ||
31 | |||
32 | MAIL_CONNECTION=smtp | 10 | MAIL_CONNECTION=smtp |
33 | SMTP_PORT=2525 | ||
34 | SMTP_HOST=127.0.0.1 | 11 | SMTP_HOST=127.0.0.1 |
12 | SMTP_PORT=2525 | ||
13 | MAIL_SSL=false | ||
35 | MAIL_USERNAME=username | 14 | MAIL_USERNAME=username |
36 | MAIL_PASSWORD=password | 15 | MAIL_PASSWORD=password |
37 | MAIL_SENDER=noreply@ferdium.org | 16 | MAIL_SENDER=noreply@ferdium.org |
38 | MAIL_SSL=true | 17 | IS_CREATION_ENABLED=true |
18 | IS_DASHBOARD_ENABLED=true | ||
19 | IS_REGISTRATION_ENABLED=true | ||
20 | CONNECT_WITH_FRANZ=false | ||
21 | DATA_DIR=data | ||
22 | PUID=1000 | ||
23 | PGID=1000 | ||
24 | |||
25 | # These are needed if running outside of Docker | ||
26 | APP_KEY= # Need to set some value | ||
27 | HOST=127.0.0.1 | ||
28 | PORT=3333 | ||
29 | |||
30 | # These have defaults hard-coded, but are being overridden | ||
31 | CACHE_VIEWS=false | ||
@@ -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? |
20 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" | 20 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" |
21 | 21 | ||
22 | RUN apk add --no-cache sqlite-libs curl su-exec | 22 | RUN apk add --no-cache sqlite-libs curl su-exec python3 make g++ py3-pip git py3-pip |
23 | RUN 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 |
25 | RUN ln -s /usr/bin/python3 /usr/bin/python | 24 | RUN 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 | |-------------------------------------------------------------------------- |