console/packages/services/server
renovate[bot] 724990143e
chore(deps): update dependency pino-pretty to v9.4.0 (#1484)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-25 05:05:28 +02:00
..
src 1️⃣ Stop creating default organization and refactor ui for org creation (#1450) 2023-02-22 14:03:01 +02:00
.env.template Fix publishing of a service right after deleting it (#1326) 2023-02-09 16:45:36 +01:00
package.json chore(deps): update dependency pino-pretty to v9.4.0 (#1484) 2023-02-25 05:05:28 +02:00
README.md feat: remove unused cdn access key (#1165) 2023-01-30 13:42:20 +01:00
tsconfig.json TS skipLibCheck everywhere, starting from root tsconfig (#588) 2022-11-03 15:00:58 +00:00

@hive/server

The GraphQL API for GraphQL Hive.

Configuration

Name Required Description Example Value
PORT Yes The port this service is running on. 4013
ENCRYPTION_SECRET Yes Secret for encrypting stuff. 8ebe95cg21c1fee355e9fa32c8c33141
WEB_APP_URL Yes The url of the web app. http://127.0.0.1:3000
RATE_LIMIT_ENDPOINT Yes The endpoint of the rate limiting service. http://127.0.0.1:4012
EMAILS_ENDPOINT Yes The endpoint of the GraphQL Hive Email service. http://127.0.0.1:6260
TOKENS_ENDPOINT Yes The endpoint of the tokens service. http://127.0.0.1:6001
WEBHOOKS_ENDPOINT Yes The endpoint of the webhooks service. http://127.0.0.1:6250
SCHEMA_ENDPOINT Yes The endpoint of the schema service. http://127.0.0.1:6500
POSTGRES_SSL No Whether the postgres connection should be established via SSL. 1 (enabled) or 0 (disabled)
POSTGRES_HOST Yes Host of the postgres database 127.0.0.1
POSTGRES_PORT Yes Port of the postgres database 5432
POSTGRES_DB Yes Name of the postgres database. registry
POSTGRES_USER Yes User name for accessing the postgres database. postgres
POSTGRES_PASSWORD Yes Password for accessing the postgres database. postgres
CLICKHOUSE_PROTOCOL Yes The clickhouse protocol for connecting to the clickhouse instance. http
CLICKHOUSE_HOST Yes The host of the clickhouse instance. 127.0.0.1
CLICKHOUSE_PORT Yes The port of the clickhouse instance 8123
CLICKHOUSE_USERNAME Yes The username for accessing the clickhouse instance. test
CLICKHOUSE_PASSWORD Yes The password for accessing the clickhouse instance. test
REDIS_HOST Yes The host of your redis instance. "127.0.0.1"
REDIS_PORT Yes The port of your redis instance. 6379
REDIS_PASSWORD Yes The password of your redis instance. "apollorocks"
S3_ENDPOINT Yes The S3 endpoint. http://localhost:9000
S3_ACCESS_KEY_ID Yes The S3 access key id. minioadmin
S3_SECRET_ACCESS_KEY Yes The S3 secret access key. minioadmin
S3_BUCKET_NAME Yes The S3 bucket name. artifacts
S3_PUBLIC_URL No The public URL of the S3, in case it differs from the S#_ENDPOINT. http://localhost:8083
CDN_API No Whether the CDN exposed via API is enabled. 1 (enabled) or 0 (disabled)
CDN_API_BASE_URL No (Yes if CDN_API is set to 1) The public base url of the API service. http://localhost:8082
SUPERTOKENS_CONNECTION_URI Yes The URI of the SuperTokens instance. http://127.0.0.1:3567
SUPERTOKENS_API_KEY Yes The API KEY of the SuperTokens instance. iliketurtlesandicannotlie
INTEGRATION_GITHUB No Whether the GitHub integration is enabled 1 (enabled) or 0 (disabled)
INTEGRATION_GITHUB_GITHUB_APP_ID No (Yes if INTEGRATION_GITHUB is set to 1) The GitHub app id. 123
INTEGRATION_GITHUB_GITHUB_APP_PRIVATE_KEY No (Yes if INTEGRATION_GITHUB is set to 1) The GitHub app private key. letmein1
AUTH_ORGANIZATION_OIDC No Whether linking a Hive organization to an Open ID Connect provider is allowed. (Default: 0) 1 (enabled) or 0 (disabled)
ENVIRONMENT No The environment of your Hive app. (Note: This will be used for Sentry reporting.) staging
SENTRY No Whether Sentry error reporting should be enabled. 1 (enabled) or 0 (disabled)
SENTRY_DSN No The DSN for reporting errors to Sentry. https://dooobars@o557896.ingest.sentry.io/12121212
PROMETHEUS_METRICS No Whether Prometheus metrics should be enabled 1 (enabled) or 0 (disabled)
PROMETHEUS_METRICS_LABEL_INSTANCE No The instance label added for the prometheus metrics. server
REQUEST_LOGGING No Log http requests 1 (enabled) or 0 (disabled)

Hive Hosted Configuration

If you are self-hosting GraphQL Hive, you can ignore this section. It is only required for the SaaS version.

Name Required Description Example Value
BILLING_ENDPOINT Yes The endpoint of the Hive Billing service. http://127.0.0.1:4013
USAGE_ESTIMATOR_ENDPOINT No The endpoint of the usage estimator service. 4011
CDN_CF No Whether the CDN is enabled. 1 (enabled) or 0 (disabled)
CDN_CF_BASE_URL No (Yes if CDN is 1) The base URL of the cdn. https://cdn.graphql-hive.com
CDN_CF_BASE_PATH No (Yes if CDN is 1) The base path of the cdn. https://cdn.graphql-hive.com
CDN_CF_ACCOUNT_ID No (Yes if CDN is 1) The cloudflare account ID. 103df45224310d669213971ce28b5b70
CDN_CF_AUTH_TOKEN No (Yes if CDN is 1) The cloudflare authentication token. 85e20c26c03759603c0f45884824a1c3
CDN_CF_NAMESPACE_ID No (Yes if CDN is 1) The cloudflare namespace name. 33b1e3bbb4a4707d05ea0307cbb55c79
AUTH_LEGACY_AUTH0 No Whether the legacy Auth0 import is enabled. 1 (enabled) or 0 (disabled)
AUTH_LEGACY_AUTH0_INTERNAL_API_KEY No (Yes if AUTH_LEGACY_AUTH0 is set) The internal endpoint key. iliketurtles
HIVE No The internal endpoint key. iliketurtles
HIVE_API_TOKEN No (Yes if HIVE is set) The internal endpoint key. iliketurtles
HIVE_USAGE No The internal endpoint key. 1 (enabled) or 0 (disabled)
HIVE_USAGE_ENDPOINT No The endpoint used for usage reporting. http://127.0.0.1:4001
HIVE_REPORTING No The internal endpoint key. iliketurtles
HIVE_REPORTING_ENDPOINT No The internal endpoint key. http://127.0.0.1:4000/graphql