Replaces the minimal project description with a comprehensive README including a component overview table, quick start instructions, common Ansible operations, and links to detailed documentation. Aligns with Red Panda Approval™ standards.
155 lines
5.6 KiB
Django/Jinja
155 lines
5.6 KiB
Django/Jinja
# -----------------------------------------------------------------------------
|
|
# Casdoor Application Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# Generated by Ansible - do not edit manually
|
|
# See: https://casdoor.org/docs/basic/server-installation
|
|
# -----------------------------------------------------------------------------
|
|
|
|
appname = casdoor
|
|
httpport = {{ casdoor_port | default(8000) }}
|
|
runmode = {{ casdoor_runmode | default('prod') }}
|
|
copyrequestbody = true
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Database Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# Connects to native PostgreSQL on localhost (deployed by postgresql_ssl playbook)
|
|
|
|
driverName = postgres
|
|
dataSourceName = user={{ casdoor_db_user }} password={{ casdoor_db_password }} host=localhost port={{ casdoor_db_port | default(5432) }} sslmode={{ casdoor_db_sslmode | default('disable') }} dbname={{ casdoor_db_name }}
|
|
dbName = {{ casdoor_db_name }}
|
|
tableNamePrefix =
|
|
showSql = {{ casdoor_showsql | default('false') }}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Cache Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
redisEndpoint = {{ casdoor_redis_endpoint | default('') }}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Storage Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# OCI Object Storage via S3-compatible API
|
|
|
|
defaultStorageProvider = {{ casdoor_default_storage_provider | default('') }}
|
|
{% if casdoor_s3_endpoint is defined and casdoor_s3_endpoint %}
|
|
storageProvider = {
|
|
"owner": "admin",
|
|
"name": "oci-s3",
|
|
"createdTime": "",
|
|
"displayName": "OCI Object Storage",
|
|
"category": "Storage",
|
|
"type": "AWS S3",
|
|
"subType": "",
|
|
"method": "",
|
|
"clientId": "{{ casdoor_s3_access_key }}",
|
|
"clientSecret": "{{ casdoor_s3_secret_key }}",
|
|
"clientId2": "",
|
|
"clientSecret2": "",
|
|
"cert": "",
|
|
"customAuthUrl": "",
|
|
"customScope": "",
|
|
"customTokenUrl": "",
|
|
"customUserInfoUrl": "",
|
|
"customLogo": "",
|
|
"scopes": "",
|
|
"userMapping": null,
|
|
"host": "",
|
|
"port": 0,
|
|
"disableSsl": false,
|
|
"title": "",
|
|
"content": "",
|
|
"receiver": "",
|
|
"regionId": "{{ casdoor_s3_region | default('ca-toronto-1') }}",
|
|
"signName": "",
|
|
"templateCode": "",
|
|
"appId": "",
|
|
"endpoint": "https://{{ casdoor_s3_endpoint }}",
|
|
"intranetEndpoint": "",
|
|
"domain": "{{ casdoor_s3_bucket }}",
|
|
"bucket": "{{ casdoor_s3_bucket }}",
|
|
"pathPrefix": "",
|
|
"metadata": "",
|
|
"idP": "",
|
|
"issuerUrl": "",
|
|
"enableSignAuthnRequest": false,
|
|
"providerUrl": ""
|
|
}
|
|
{% endif %}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Security Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
isCloudIntranet = false
|
|
authState = {{ casdoor_auth_state | default(casdoor_secret_key) }}
|
|
socks5Proxy =
|
|
verificationCodeTimeout = 10
|
|
initScore = 0
|
|
logPostOnly = true
|
|
isUsernameLowered = false
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Origin Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# Must match the external URL used to access Casdoor
|
|
|
|
origin = {{ casdoor_origin }}
|
|
originFrontend = {{ casdoor_origin_frontend | default(casdoor_origin) }}
|
|
staticBaseUrl = "https://cdn.casbin.org"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Application Settings
|
|
# -----------------------------------------------------------------------------
|
|
|
|
isDemoMode = false
|
|
batchSize = 100
|
|
enableErrorMask = true
|
|
enableGzip = true
|
|
|
|
# Session timeout in minutes
|
|
inactiveTimeoutMinutes = {{ casdoor_inactive_timeout_minutes | default(60) }}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Theme Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
themeData = {"themeType": "default", "colorPrimary": "#ffa415", "borderRadius": 6, "isCompact": false}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# LDAP Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ldapServerPort = {{ casdoor_ldap_server_port | default(0) }}
|
|
ldapsCertId = {{ casdoor_ldaps_cert_id | default('') }}
|
|
ldapsServerPort = {{ casdoor_ldaps_server_port | default(0) }}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# RADIUS Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
radiusServerPort = {{ casdoor_radius_server_port | default(0) }}
|
|
radiusDefaultOrganization = {{ casdoor_radius_default_organization | default('built-in') }}
|
|
radiusSecret = {{ casdoor_radius_secret | default('') }}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Resource Quotas
|
|
# -----------------------------------------------------------------------------
|
|
|
|
quota = {"organization": -1, "user": -1, "application": -1, "provider": -1}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Logging Configuration
|
|
# -----------------------------------------------------------------------------
|
|
|
|
logConfig = {"adapter":"console"}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Initialization
|
|
# -----------------------------------------------------------------------------
|
|
|
|
initDataNewOnly = true
|
|
initDataFile = "/conf/init_data.json"
|
|
frontendBaseDir = "../cc_0"
|