-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: tc-imba <[email protected]> Co-authored-by: Reapor-Yurnero <[email protected]>
- Loading branch information
1 parent
7808149
commit 6e0563c
Showing
23 changed files
with
2,880 additions
and
2,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Authorization | ||
|
||
## General | ||
|
||
{% include-markdown "generated/AuthGeneralSettings.md" %} | ||
|
||
## CORS | ||
|
||
{% include-markdown "generated/AuthCORSSettings.md" %} | ||
|
||
## Google OAuth2 | ||
|
||
{% include-markdown "generated/AuthGoogleOAuthSettings.md" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Backend | ||
|
||
## Minimal | ||
|
||
{% include-markdown "generated/BackendMinimalSettings.md" %} | ||
|
||
## Brick | ||
|
||
{% include-markdown "generated/BackendBrickSettings.md" %} | ||
|
||
## Playground | ||
|
||
{% include-markdown "generated/BackendPlaygroundSettings.md" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Database | ||
|
||
## MongoDB | ||
|
||
{% include-markdown "generated/DatabaseMongoDBSettings.md" %} | ||
|
||
## GraphDB | ||
|
||
{% include-markdown "generated/DatabaseGraphDBSettings.md" %} | ||
|
||
## Redis | ||
|
||
{% include-markdown "generated/DatabaseRedisSettings.md" %} | ||
|
||
## TimescaleDB | ||
|
||
{% include-markdown "generated/DatabaseTimescaleDBSettings.md" %} | ||
|
||
## InfluxDB | ||
|
||
{% include-markdown "generated/DatabaseInfluxDBSettings.md" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### `IS_ALLOWED_CREDENTIALS` | ||
|
||
*Optional*, default value: `True` | ||
|
||
CORS allowed credentials | ||
|
||
### `ALLOWED_ORIGINS` | ||
|
||
*Optional*, default value: `['http://localhost:3000', 'http://0.0.0.0:3000', 'http://127.0.0.1:3000', 'http://127.0.0.1:3001', 'http://localhost:5173', 'http://0.0.0.0:5173', 'http://127.0.0.1:5173', 'http://127.0.0.1:5174']` | ||
|
||
### `ALLOWED_METHODS` | ||
|
||
*Optional*, default value: `['*']` | ||
|
||
### `ALLOWED_HEADERS` | ||
|
||
*Optional*, default value: `['*']` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
### `API_TOKEN` | ||
|
||
*Optional*, default value: `YOUR-API-TOKEN` | ||
|
||
API token | ||
|
||
### `AUTH_TOKEN` | ||
|
||
*Optional*, default value: `YOUR-AUTHENTICATION-TOKEN` | ||
|
||
Authentication token | ||
|
||
### `JWT_SECRET_KEY` | ||
|
||
*Optional*, default value: `YOUR-JWT-SECRET-KEY` | ||
|
||
JWT secret key | ||
|
||
### `JWT_SUBJECT` | ||
|
||
*Optional*, default value: `brick` | ||
|
||
JWT subject | ||
|
||
### `JWT_TOKEN_PREFIX` | ||
|
||
*Optional*, default value: `brick` | ||
|
||
JWT token prefix | ||
|
||
### `JWT_ALGORITHM` | ||
|
||
*Optional*, default value: `HS256` | ||
|
||
JWT algorithm | ||
|
||
### `JWT_MIN` | ||
|
||
*Optional*, default value: `0` | ||
|
||
JWT expiration minute | ||
|
||
### `JWT_HOUR` | ||
|
||
*Optional*, default value: `0` | ||
|
||
JWT expiration hour | ||
|
||
### `JWT_DAY` | ||
|
||
*Optional*, default value: `14` | ||
|
||
JWT expiration day |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### `OAUTH_GOOGLE_CLIENT_ID` | ||
|
||
*Optional*, default value: `` | ||
|
||
Google OAuth client id | ||
|
||
### `OAUTH_GOOGLE_CLIENT_SECRET` | ||
|
||
*Optional*, default value: `` | ||
|
||
Google OAuth client secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### `BRICK_VERSION` | ||
|
||
*Optional*, default value: `1.3` | ||
|
||
Brick version used. | ||
|
||
### `DEFAULT_BRICK_URL` | ||
|
||
*Optional*, default value: `https://brickschema.org/schema/Brick` | ||
|
||
Brick schema URL. | ||
|
||
### `DEFAULT_REF_SCHEMA_URL` | ||
|
||
*Optional*, default value: `https://gist.githubusercontent.com/tc-imba/714c2043e893b1538406a9113140a4fe/raw/2fa8df840f3e4f1deb647b14fe524976f004e321/ref-schema.ttl` | ||
|
||
Ref schema URL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
### `API_PREFIX` | ||
|
||
*Optional*, default value: `/brickapi/v1` | ||
|
||
### `DOCS_URL` | ||
|
||
*Optional*, default value: `/brickapi/v1/docs` | ||
|
||
### `OPENAPI_URL` | ||
|
||
*Optional*, default value: `/brickapi/v1/openapi.json` | ||
|
||
### `REDOC_URL` | ||
|
||
*Optional*, default value: `/brickapi/v1/redoc` | ||
|
||
### `OPENAPI_PREFIX` | ||
|
||
*Optional*, default value: `` | ||
|
||
### `SERVER_HOST` | ||
|
||
*Optional*, default value: `0.0.0.0` | ||
|
||
Bind socket to this host. | ||
|
||
### `SERVER_PORT` | ||
|
||
*Optional*, default value: `9000` | ||
|
||
Bind socket to this port. If 0, an available port will be picked | ||
|
||
### `SERVER_WORKERS` | ||
|
||
*Optional*, default value: `1` | ||
|
||
Number of worker processes. | ||
|
||
### `FRONTEND_URL` | ||
|
||
*Optional*, default value: `/brickapi/v1/docs` | ||
|
||
URL to frontend. Usually used for auth redirection. | ||
|
||
### `CACHE` | ||
|
||
*Optional*, default value: `True` | ||
|
||
Enable caching. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### `DEFAULT_ADMIN` | ||
|
||
*Optional*, default value: `[email protected]` | ||
|
||
The email of default admin user. (deprecated, we should remove it in future version) | ||
|
||
### `ISOLATED_NETWORK_NAME` | ||
|
||
*Optional*, default value: `isolated_nw` | ||
|
||
The name of the isolated network in docker. | ||
|
||
### `DOCKER_PREFIX` | ||
|
||
*Optional*, default value: `brick-server-playground` | ||
|
||
The docker prefix to use in app containers. | ||
|
||
### `APP_STATIC_DIR` | ||
|
||
*Optional*, default value: `app_static` | ||
|
||
The directory to save app static files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### `GRAPHDB_HOST` | ||
|
||
*Optional*, default value: `localhost` | ||
|
||
GraphDB host | ||
|
||
### `GRAPHDB_PORT` | ||
|
||
*Optional*, default value: `7200` | ||
|
||
GraphDB port | ||
|
||
### `GRAPHDB_REPOSITORY` | ||
|
||
*Optional*, default value: `brickserver` | ||
|
||
GraphDB repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### `INFLUXDB_URL` | ||
|
||
*Optional*, default value: `https://us-east-1-1.aws.cloud2.influxdata.com` | ||
|
||
InfluxDB URL | ||
|
||
### `INFLUXDB_TOKEN` | ||
|
||
*Optional*, default value: `` | ||
|
||
InfluxDB access token | ||
|
||
### `INFLUXDB_ORG` | ||
|
||
*Optional*, default value: `9d4d3af8fd50fcbb` | ||
|
||
InfluxDB org name | ||
|
||
### `INFLUXDB_BUCKET` | ||
|
||
*Optional*, default value: `CO2-Exp` | ||
|
||
InfluxDB bucket |
Oops, something went wrong.