Skip to content

Commit 2513277

Browse files
authored
Merge pull request #515 from davidebriani/add-user-config-json
chore: add JSON user config defaulting to using local Astarte instance
2 parents fc504ae + 4ac94e6 commit 2513277

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24-
25-
/public/user-config

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Astarte Dashboard is written in TypeScript using the React framework and npm to
150150
```sh
151151
npm install
152152
```
153-
3. Place your configuration file in `src/user-config/config.json`
153+
3. Place your configuration file in `public/user-config/config.json`
154154
4. Start the dev server
155155
```sh
156156
npm run start

public/user-config/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"astarte_api_url": "http://api.astarte.localhost",
3+
"default_auth": "token",
4+
"enable_flow_preview": false,
5+
"auth": [
6+
{
7+
"type": "token"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)