diff options
author | 2021-08-01 11:07:57 +0000 | |
---|---|---|
committer | 2021-08-01 16:37:57 +0530 | |
commit | 419933f6505caf4c5e685f8436b1ff735185e55a (patch) | |
tree | 152dcb9d2b35d29f862cc57a605b9ae2a0f7c300 /src/internal-server/config/hash.js | |
parent | Removed duplicated contributors badge. (diff) | |
download | ferdium-app-419933f6505caf4c5e685f8436b1ff735185e55a.tar.gz ferdium-app-419933f6505caf4c5e685f8436b1ff735185e55a.tar.zst ferdium-app-419933f6505caf4c5e685f8436b1ff735185e55a.zip |
Moved 'internal-server' into a sub-folder as opposed to a git submodule. (#1715)
* Ignored tests in 'internal-server' folder since there are none.
* Linter fixes
Diffstat (limited to 'src/internal-server/config/hash.js')
-rw-r--r-- | src/internal-server/config/hash.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/internal-server/config/hash.js b/src/internal-server/config/hash.js new file mode 100644 index 000000000..bbf32f691 --- /dev/null +++ b/src/internal-server/config/hash.js | |||
@@ -0,0 +1,47 @@ | |||
1 | /** @type {import('@adonisjs/framework/src/Env')} */ | ||
2 | const Env = use('Env'); | ||
3 | |||
4 | module.exports = { | ||
5 | /* | ||
6 | |-------------------------------------------------------------------------- | ||
7 | | Driver | ||
8 | |-------------------------------------------------------------------------- | ||
9 | | | ||
10 | | Driver to be used for hashing values. The same driver is used by the | ||
11 | | auth module too. | ||
12 | | | ||
13 | */ | ||
14 | driver: Env.get('HASH_DRIVER', 'bcrypt'), | ||
15 | |||
16 | /* | ||
17 | |-------------------------------------------------------------------------- | ||
18 | | Bcrypt | ||
19 | |-------------------------------------------------------------------------- | ||
20 | | | ||
21 | | Config related to bcrypt hashing. https://www.npmjs.com/package/bcrypt | ||
22 | | package is used internally. | ||
23 | | | ||
24 | */ | ||
25 | bcrypt: { | ||
26 | rounds: 10, | ||
27 | }, | ||
28 | |||
29 | /* | ||
30 | |-------------------------------------------------------------------------- | ||
31 | | Argon | ||
32 | |-------------------------------------------------------------------------- | ||
33 | | | ||
34 | | Config related to argon. https://www.npmjs.com/package/argon2 package is | ||
35 | | used internally. | ||
36 | | | ||
37 | | Since argon is optional, you will have to install the dependency yourself | ||
38 | | | ||
39 | |============================================================================ | ||
40 | | npm i argon2 | ||
41 | |============================================================================ | ||
42 | | | ||
43 | */ | ||
44 | argon: { | ||
45 | type: 1, | ||
46 | }, | ||
47 | }; | ||