|
| 1 | +[<< back to main](../README.md) |
| 2 | +# **Supported Environment Variable** |
| 3 | + |
| 4 | +| **NAME** | **DESCRIPTION** | **DEFAULT** | |
| 5 | +|-----------|-------------------|---------------| |
| 6 | +| HOST | FastAPI's host argument | 0.0.0.0 | |
| 7 | +| PORT | FastAPI's port argument | 8000 | |
| 8 | +| DATABASE_HOST | MongoDB connection string | mongodb://localhost/?retryWrites=true&w=majority | |
| 9 | +| DATABASE_NAME | MongoDB database name | jaseci | |
| 10 | +| REDIS_HOST | Redis connection host | redis://localhost | |
| 11 | +| REDIS_PORT | Redis connection port | 6379 | |
| 12 | +| REDIS_USER | Redis connection username | null | |
| 13 | +| REDIS_PASS | Redis connection password | null | |
| 14 | +| DISABLE_AUTO_CLEANUP | Disable auto deletion of nodes that doesn't connect to anything | false | |
| 15 | +| SINGLE_QUERY | Every edge_ref will trigger query per anchor if not already cached instead of consolidating non cached anchor before querying. | false | |
| 16 | +| SESSION_MAX_TRANSACTION_RETRY | MongoDB's transactional retry | 1 | |
| 17 | +| DISABLE_AUTO_ENDPOINT | Disable auto convertion of walker to api. It will now require inner class __specs__ or @specs decorator. | false | |
| 18 | +| SHOW_ENDPOINT_RETURNS | Include per visit return on api response | false | |
| 19 | +| SESSION_MAX_COMMIT_RETRY | MongoDB's transaction commit retry | 1 | |
| 20 | +| RESTRICT_UNVERIFIED_USER | Rstrict user's login until it has verified | false | |
| 21 | +| TOKEN_SECRET | Random string used to encrypt token | 50 random characters | |
| 22 | +| TOKEN_ALGORITHM | Algorithm used to encrypt token | HS256 | |
| 23 | +| TOKEN_TIMEOUT | Token expiration in hours | 12 | |
| 24 | +| VERIFICATION_CODE_TIMEOUT | Verification code expiration in hours | 24 | |
| 25 | +| RESET_CODE_TIMEOUT | Password reset code expiration in hours | 24 | |
| 26 | +| SENDGRID_HOST | Sendgrid host used for hyperlinking verification/reset code | http://localhost:8000 | |
| 27 | +| SENDGRID_API_KEY | Sendgrid api key | null | |
| 28 | + |
| 29 | +# **SSO Supported Enviroment Variable** |
| 30 | +## Supported Platform |
| 31 | + - APPLE |
| 32 | + - FACEBOOK |
| 33 | + - FITBIT |
| 34 | + - GITHUB |
| 35 | + - GITLAB |
| 36 | + - GOOGLE |
| 37 | + - KAKAO |
| 38 | + - LINE |
| 39 | + - LINKEDIN |
| 40 | + - MICROSOFT |
| 41 | + - NAVER |
| 42 | + - NOTION |
| 43 | + - TWITTER |
| 44 | + - YANDEX |
| 45 | + |
| 46 | +| **NAME** | **DESCRIPTION** | |
| 47 | +|-----------|-------------------| |
| 48 | +| SSO_`{PLATFORM}`_CLIENT_ID | platform's client id | |
| 49 | +| SSO_`{PLATFORM}`_CLIENT_SECRET | platform's client secret | |
| 50 | +| SSO_`{PLATFORM}`_ALLOW_INSECURE_HTTP | set if platform allow insecure http connection | |
| 51 | +| SSO_GITLAB_BASE_ENDPOINT_URL | gitlab base endpoint url | |
| 52 | +| SSO_MICROSOFT_TENANT | microsoft tenant | |
| 53 | + |
| 54 | +## Apple Client Secret Auto Generation |
| 55 | +- for certificate: Just use either SSO_APPLE_CLIENT_CERTIFICATE_PATH or SSO_APPLE_CLIENT_CERTIFICATE |
| 56 | + |
| 57 | +| **NAME** | **DESCRIPTION** | |
| 58 | +|-----------|-------------------| |
| 59 | +| SSO_APPLE_CLIENT_ID | apple's client id | |
| 60 | +| SSO_APPLE_CLIENT_TEAM_ID | apple's client team id | |
| 61 | +| SSO_APPLE_CLIENT_KEY | apple's client key | |
| 62 | +| SSO_APPLE_CLIENT_CERTIFICATE_PATH | apple's client certificate path | |
| 63 | +| SSO_APPLE_CLIENT_CERTIFICATE | apple's client certificate raw content | |
0 commit comments