Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:embernet/sidekick into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
embernet committed Jul 24, 2024
2 parents c99b8ef + f5c1935 commit 6823d40
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 338 deletions.
24 changes: 15 additions & 9 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@ The server supports multiple configuration options that can be supplied as envir

### Server Environment Variables

| Variable | Description | Required | Default Value |
|-------------------------|------------------------------------------------------------------------------------------------------------------------------------|--------------|---------------------|
| OPENAI_API_KEY | The key used to authenticate with OpenAI's API || |
| JWT_SECRET_KEY | The secret key used by Flask to encode and decode JWTs || |
| SQLALCHEMY_DATABASE_URI | The database connection URI, for example `sqlite:///sqlite.db` or `postgresql://sidekick_user:[email protected]/sidekick_db` || |
| SIDEKICK_SERVER_PORT | The port for the Sidekick Server to run on when using run.py | | 5000 |
| LOG_LEVEL | The minimum urgency of logs to write to standard out. Supported values: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'. | | ERROR |
| FLASK_DEBUG | Whether or not to run the Flask app in debug mode. Supported values: 'True', 'False'. | | False |
| HTTPS_PROXY | The full proxy URL, if using a proxy for HTTPS requests, in the format `protocol://username:password@host:port`.| | |
| Variable | Description | Required | Default Value |
|----------|-------------|----------|---------------|
|`JWT_SECRET_KEY`|Secret key used by Flask to encode and decode JWTs|||
|`SQLALCHEMY_DATABASE_URI`|Database connection URI, for example `sqlite:///sqlite.db` or `postgresql://sidekick_user:[email protected]/sidekick_db`|||
|`OPENAI_API_KEY`|Key used to authenticate with OpenAI's API|||
|`OPENAI_BASE_URL`|Base URL for OpenAI API||`https://api.openai.com/v1`|
|`SIDEKICK_SERVER_PORT`|Port for the Sidekick Server to run on when using `run.py`||`5000`|
|`SIDEKICK_WEBUI_BASE_URL`|Base URL for the Sidekick Web UI service||`http://localhost:8081`|
|`OIDC_WELL_KNOWN_URL`|The OIDC provider's well-known URL, required for OIDC authentication support|||
|`OIDC_TOKEN_ENDPOINT`|The OIDC provider's token endpoint, used for handling OIDC logout|||
|`OIDC_REDIRECT_URL`|Where the OIDC provider should redirect to after successful login.|||
|`OIDC_CLIENT_ID`|Client ID used for authenticating with OIDC provider|||
|`OIDC_CLIENT_SECRET`|Client secret used for authenticating with OIDC provider|||
|`LOG_LEVEL`|Minimum urgency of logs to write to standard out. Supported values: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'.||`ERROR`|
|`FLASK_DEBUG`|Whether or not to run the Flask app in debug mode. Supported values: 'True', 'False'.|||

### System settings

Expand Down
3 changes: 2 additions & 1 deletion server/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ flask = "==2.3.3"
flask-cors = "==4.0.1"
flask-jwt-extended = "==4.5.3"
flask-migrate = "==4.0.5"
flask-oidc = "==2.1.0"
flask-sqlalchemy = "==3.1.1"
sqlalchemy-utils = "==0.41.1"
requests = "==2.31.0"
Expand All @@ -21,6 +20,8 @@ psycopg2-binary = "*"
pytest = "7.4.2"
tiktoken = "0.5.1"
gevent = "23.9.1"
requests-oauthlib = "==1.3.0"
"pyjwt[crypto]" = "==2.3.0"

[dev-packages]

Expand Down
Loading

0 comments on commit 6823d40

Please sign in to comment.