-
Notifications
You must be signed in to change notification settings - Fork 2
Setting Environment Variables
Simon B. Støvring edited this page Jul 16, 2024
·
22 revisions
To deploy Shape Docs or contribute to the codebase, you must set the required environment variables.
You can find these variables in the .env.example file and the table below.
To set the environment variables locally, copy the .env.example file to .env.local and update the values accordingly.
| Environment Variable | Example Value | Description |
|---|---|---|
| SHAPE_DOCS_BASE_URL | http://localhost:3000 | Base URL for the Shape Docs application. |
| SHAPE_DOCS_PROJECT_CONFIGURATION_FILENAME | .shape-docs.yml | Filename for the Shape Docs project configuration. |
| NEXT_PUBLIC_SHAPE_DOCS_TITLE | Shape Docs | Title for Shape Docs. |
| NEXT_PUBLIC_SHAPE_DOCS_DESCRIPTION | Documentation for Shape's APIs | Description for Shape Docs. |
| NEXTAUTH_URL_INTERNAL | http://localhost:3000 | Internal URL for NextAuth. |
| NEXTAUTH_SECRET | Use [openssl rand -base64 32] to generate a 32 bytes value. | Secret for NextAuth. |
| REDIS_URL | localhost | URL for Redis. |
| POSTGRESQL_HOST | localhost | Host for PostgreSQL. |
| POSTGRESQL_USER | dbuser | Username for PostgreSQL. |
| POSTGRESQL_DB | db | Database name for PostgreSQL. |
| REPOSITORY_NAME_SUFFIX | -openapi | Suffix for repository names. |
| GITHUB_WEBHOOK_SECRET | Secret specified when creating the GitHub App. | Secret for GitHub webhooks. |
| GITHUB_WEBHOK_REPOSITORY_ALLOWLIST | Comma-separated allowlist for GitHub webhook repositories. | |
| GITHUB_WEBHOK_REPOSITORY_DISALLOWLIST | Comma-separated disallowlist for GitHub webhook repositories. | |
| GITHUB_CLIENT_ID | Client ID of the GitHub App created according to this article. | Client ID for GitHub App. |
| GITHUB_CLIENT_SECRET | Client secret of the GitHub App created according to this article. | Client secret for GitHub App. |
| GITHUB_APP_ID | ID of the GitHub App created according to this article. | App ID for GitHub App. |
| GITHUB_PRIVATE_KEY_BASE_64 | Base 64 encoded version of the private key obtained when creating the GitHub App according to this article. | Base64 encoded private key for GitHub App. |
Framna Docs is built with ❤️ by Framna in Denmark. Oh, and we are hiring 🤗