Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
🔨 Add missing api config
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Mar 30, 2019
1 parent b78ed77 commit 396c694
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/cont-init.d/20-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# This updates the internal auth secret for the API
# ==============================================================================
# shellcheck disable=2094,2016
bashio::jq /opt/api/config/default.json '.authentication.secret="$(openssl rand -base64 32)"' > /opt/api/config/default.json
bashio::jq /etc/home-panel/default.json '.authentication.secret="$(openssl rand -base64 32)"' > /opt/api/config/default.json
37 changes: 37 additions & 0 deletions home-panel/rootfs/etc/home-panel/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"host": "localhost",
"port": 3234,
"public": "../public/",
"paginate": {
"default": 10,
"max": 50
},
"authentication": {
"secret": "API_AUTH_SECRET",
"strategies": ["jwt", "local"],
"path": "/authentication",
"service": "users",
"jwt": {
"header": {
"typ": "access"
},
"audience": "https://timmo.dev/home-panel",
"subject": "anonymous",
"issuer": "feathers",
"algorithm": "HS256",
"expiresIn": "1d"
},
"local": {
"entity": "user",
"usernameField": "username",
"passwordField": "password"
},
"cookie": {
"enabled": true,
"name": "feathers-jwt",
"httpOnly": false,
"secure": false
}
},
"nedb": "/data"
}

0 comments on commit 396c694

Please sign in to comment.