You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document provides a detailed explanation of the environment variables required for the CSGHub Portal project. You can choose the appropriate configuration based on your deployment environment (SaaS or on-premise).
Configuration Files
The project provides two environment file templates:
.env.example: For use with docker-compose or for direct loading via the source command.
.envrc.example: For use with direnv, which automatically loads variables when you enter the project directory.
You can copy one of these files to .env or .envrc and modify the values according to your needs.
General Configuration
Environment Variable
Type
Description
Default Value
CSGHUB_PORTAL_ON_PREMISE
Boolean
Whether it is an on-premise deployment. true for on-premise, false for SaaS.
true
CSGHUB_PORTAL_SENSITIVE_CHECK
Boolean
Whether to enable sensitive content checking.
false
CSGHUB_PORTAL_ENABLE_HTTPS
Boolean
Whether to force the use of HTTPS in site URLs.
true
CSGHUB_PORTAL_SERVER_PORT
Integer
The listening port for the Portal service.
8090
CSGHUB_PORTAL_SUPER_USERS
String
A comma-separated list of superuser usernames.
""
csghub-server API Configuration
Environment Variable
Type
Description
Default Value
CSGHUB_PORTAL_STARHUB_BASE_URL
String
The URL of the csghub-server service.
http://localhost:8080
CSGHUB_PORTAL_STARHUB_API_KEY
String
The API key for accessing the csghub-server API.
0c11...
Database Configuration
Environment Variable
Type
Description
Default Value
CSGHUB_PORTAL_DATABASE_DSN
String
The Data Source Name (DSN) for the database connection.