mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 22:28:25 +00:00
34 lines
4.1 KiB
Plaintext
34 lines
4.1 KiB
Plaintext
---
|
|
title: "Environment Variables"
|
|
description: ""
|
|
---
|
|
|
|
## The .env file
|
|
|
|
Configuring Infisical requires setting some environment variables. There is a file called `.env.example` at the root directory of our main repo that you can use to create a `.env` before you start the server.
|
|
|
|
| Variable | Description | Default Value |
|
|
| ---------------------------- | ----------------------------------------------------------------------------------------------------------- | ---------------- |
|
|
| `PRIVATE_KEY` | ❗️ NaCl-generated server secret key | `None` |
|
|
| `PUBLIC_KEY` | ❗️ NaCl-generated server public key | `None` |
|
|
| `ENCRYPTION_KEY` | ❗️ Strong hex encryption key | `None` |
|
|
| `JWT_SIGNUP_SECRET` | ❗️ JWT token secret | `None` |
|
|
| `JWT_REFRESH_SECRET` | ❗️ JWT token secret | `None` |
|
|
| `JWT_AUTH_SECRET` | ❗️ JWT token secret | `None` |
|
|
| `JWT_SIGNUP_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `15m` |
|
|
| `JWT_REFRESH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `90d` |
|
|
| `JWT_AUTH_LIFETIME` | JWT token lifetime expressed in seconds or a string describing a time span (e.g. 60, "2 days", "10h", "7d") | `10d` |
|
|
| `EMAIL_TOKEN_LIFETIME` | Email OTP/magic-link lifetime expressed in seconds | `86400` |
|
|
| `MONGO_URL` | ❗️ MongoDB instance connection string either to container instance or MongoDB Cloud | `None` |
|
|
| `MONGO_USERNAME` | MongoDB username if using container | `None` |
|
|
| `MONGO_PASSWORD` | MongoDB password if using container | `None` |
|
|
| `SITE_URL` | ❗️ Site URL - should be an absolute URL including the protocol (e.g. `https://app.infisical.com`) | `None` |
|
|
| `SMTP_HOST` | Hostname to connect to for establishing SMTP connections | `smtp.gmail.com` |
|
|
| `SMTP_NAME` | Name label to be used in From field (e.g. `Team`) | `None` |
|
|
| `SMTP_USERNAME` | ❗️ Credential to connect to host (e.g. `[email protected]`) | `None` |
|
|
| `SMTP_PASSWORD` | ❗️ Credential to connect to host | `None` |
|
|
| `TELEMETRY_ENABLED` | `true` or `false`. [More](../overview). | `true` |
|
|
| `OAUTH_CLIENT_SECRET_HEROKU` | OAuth client secret for Heroku integration | `None` |
|
|
| `OAUTH_TOKEN_URL_HEROKU` | OAuth token URL for Heroku integration | `None` |
|
|
| `SENTRY_DSN` | DSN for error-monitoring with Sentry | `None` |
|