refactor progress
This commit is contained in:
116
config/config.dev.template.json
Normal file
116
config/config.dev.template.json
Normal file
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"$schema": "../packages/config/src/ConfigSchema.json",
|
||||
"env": "development",
|
||||
"domain": {
|
||||
"base_domain": "localhost",
|
||||
"public_port": 48763
|
||||
},
|
||||
"database": {
|
||||
"backend": "sqlite",
|
||||
"sqlite_path": "./data/dev.db"
|
||||
},
|
||||
"internal": {
|
||||
"kv": "redis://127.0.0.1:6379/0"
|
||||
},
|
||||
"s3": {
|
||||
"access_key_id": "",
|
||||
"secret_access_key": "",
|
||||
"endpoint": "http://127.0.0.1:49319/s3"
|
||||
},
|
||||
"services": {
|
||||
"server": {
|
||||
"port": 49319,
|
||||
"host": "0.0.0.0"
|
||||
},
|
||||
"media_proxy": {
|
||||
"secret_key": ""
|
||||
},
|
||||
"admin": {
|
||||
"secret_key_base": "",
|
||||
"oauth_client_secret": ""
|
||||
},
|
||||
"marketing": {
|
||||
"enabled": true,
|
||||
"port": 49531,
|
||||
"host": "0.0.0.0",
|
||||
"secret_key_base": ""
|
||||
},
|
||||
"gateway": {
|
||||
"port": 49107,
|
||||
"rpc_tcp_port": 49108,
|
||||
"api_host": "http://localhost:49319/api",
|
||||
"admin_reload_secret": "",
|
||||
"media_proxy_endpoint": "http://localhost:49319/media",
|
||||
"logger_level": "debug"
|
||||
},
|
||||
"queue": {
|
||||
"secret": ""
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"rpc_endpoint": "http://localhost:49107",
|
||||
"rpc_secret": ""
|
||||
},
|
||||
"auth": {
|
||||
"sudo_mode_secret": "",
|
||||
"connection_initiation_secret": "",
|
||||
"vapid": {
|
||||
"public_key": "",
|
||||
"private_key": ""
|
||||
},
|
||||
"bluesky": {
|
||||
"enabled": true,
|
||||
"keys": []
|
||||
}
|
||||
},
|
||||
"dev": {
|
||||
"disable_rate_limits": true
|
||||
},
|
||||
"integrations": {
|
||||
"email": {
|
||||
"enabled": true,
|
||||
"provider": "smtp",
|
||||
"from_email": "noreply@localhost",
|
||||
"smtp": {
|
||||
"host": "localhost",
|
||||
"port": 49621,
|
||||
"username": "dev",
|
||||
"password": "",
|
||||
"secure": false
|
||||
}
|
||||
},
|
||||
"gif": {
|
||||
"provider": "klipy"
|
||||
},
|
||||
"klipy": {
|
||||
"api_key": ""
|
||||
},
|
||||
"tenor": {
|
||||
"api_key": ""
|
||||
},
|
||||
"voice": {
|
||||
"enabled": true,
|
||||
"api_key": "",
|
||||
"api_secret": "",
|
||||
"url": "ws://localhost:7880",
|
||||
"webhook_url": "http://localhost:49319/api/webhooks/livekit",
|
||||
"default_region": {
|
||||
"id": "default",
|
||||
"name": "Default",
|
||||
"emoji": "\ud83c\udf10",
|
||||
"latitude": 0.0,
|
||||
"longitude": 0.0
|
||||
}
|
||||
},
|
||||
"search": {
|
||||
"url": "http://127.0.0.1:7700",
|
||||
"api_key": ""
|
||||
}
|
||||
},
|
||||
"instance": {
|
||||
"private_key_path": ""
|
||||
},
|
||||
"federation": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
66
config/config.production.template.json
Normal file
66
config/config.production.template.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"$schema": "../packages/config/src/ConfigSchema.json",
|
||||
"env": "production",
|
||||
"domain": {
|
||||
"base_domain": "chat.example.com",
|
||||
"public_scheme": "https",
|
||||
"public_port": 443
|
||||
},
|
||||
"database": {
|
||||
"backend": "sqlite",
|
||||
"sqlite_path": "./data/fluxer.db"
|
||||
},
|
||||
"internal": {
|
||||
"kv": "redis://valkey:6379/0"
|
||||
},
|
||||
"s3": {
|
||||
"access_key_id": "YOUR_S3_ACCESS_KEY",
|
||||
"secret_access_key": "YOUR_S3_SECRET_KEY",
|
||||
"endpoint": "http://127.0.0.1:3900"
|
||||
},
|
||||
"services": {
|
||||
"server": {
|
||||
"port": 8080,
|
||||
"host": "0.0.0.0"
|
||||
},
|
||||
"media_proxy": {
|
||||
"secret_key": "GENERATE_A_64_CHAR_HEX_SECRET"
|
||||
},
|
||||
"admin": {
|
||||
"secret_key_base": "GENERATE_A_64_CHAR_HEX_SECRET",
|
||||
"oauth_client_secret": "GENERATE_A_64_CHAR_HEX_SECRET"
|
||||
},
|
||||
"marketing": {
|
||||
"enabled": true,
|
||||
"secret_key_base": "GENERATE_A_64_CHAR_HEX_SECRET"
|
||||
},
|
||||
"gateway": {
|
||||
"port": 8082,
|
||||
"rpc_tcp_port": 8083,
|
||||
"api_host": "http://127.0.0.1:8080/api",
|
||||
"admin_reload_secret": "GENERATE_A_64_CHAR_HEX_SECRET",
|
||||
"media_proxy_endpoint": "http://127.0.0.1:8080/media"
|
||||
},
|
||||
"queue": {
|
||||
"secret": "GENERATE_A_64_CHAR_HEX_SECRET"
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"rpc_endpoint": "http://127.0.0.1:8082",
|
||||
"rpc_secret": "GENERATE_A_64_CHAR_HEX_SECRET"
|
||||
},
|
||||
"auth": {
|
||||
"sudo_mode_secret": "GENERATE_A_64_CHAR_HEX_SECRET",
|
||||
"connection_initiation_secret": "GENERATE_A_64_CHAR_HEX_SECRET",
|
||||
"vapid": {
|
||||
"public_key": "YOUR_VAPID_PUBLIC_KEY",
|
||||
"private_key": "YOUR_VAPID_PRIVATE_KEY"
|
||||
}
|
||||
},
|
||||
"integrations": {
|
||||
"search": {
|
||||
"url": "http://meilisearch:7700",
|
||||
"api_key": "YOUR_MEILISEARCH_API_KEY"
|
||||
}
|
||||
}
|
||||
}
|
||||
4
config/config.schema.json
Normal file
4
config/config.schema.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$ref": "../packages/config/src/ConfigSchema.json"
|
||||
}
|
||||
78
config/config.test.json
Normal file
78
config/config.test.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"env": "test",
|
||||
"instance": {
|
||||
"self_hosted": false
|
||||
},
|
||||
"domain": {
|
||||
"base_domain": "localhost"
|
||||
},
|
||||
"database": {
|
||||
"backend": "sqlite",
|
||||
"sqlite_path": "./data/test.db"
|
||||
},
|
||||
"s3": {
|
||||
"access_key_id": "test-access-key",
|
||||
"secret_access_key": "test-secret-key"
|
||||
},
|
||||
"services": {
|
||||
"media_proxy": {
|
||||
"secret_key": "test-media-proxy-secret-key-minimum-32-chars"
|
||||
},
|
||||
"admin": {
|
||||
"secret_key_base": "test-admin-secret-key-base-minimum-32-chars",
|
||||
"oauth_client_secret": "test-oauth-client-secret"
|
||||
},
|
||||
"gateway": {
|
||||
"rpc_tcp_port": 8089,
|
||||
"api_host": "http://localhost:8088/api",
|
||||
"admin_reload_secret": "test-gateway-admin-reload-secret-32-chars",
|
||||
"media_proxy_endpoint": "http://localhost:8088/media"
|
||||
},
|
||||
"queue": {
|
||||
"secret": "test-queue-secret-key-minimum-32-chars"
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"rpc_secret": "test-gateway-rpc-secret-minimum-32-chars"
|
||||
},
|
||||
"auth": {
|
||||
"sudo_mode_secret": "test-sudo-mode-secret-minimum-32-chars",
|
||||
"connection_initiation_secret": "test-connection-initiation-secret-32ch",
|
||||
"vapid": {
|
||||
"public_key": "test-vapid-public-key",
|
||||
"private_key": "test-vapid-private-key"
|
||||
},
|
||||
"bluesky": {
|
||||
"enabled": true,
|
||||
"keys": []
|
||||
}
|
||||
},
|
||||
"dev": {
|
||||
"disable_rate_limits": true,
|
||||
"test_mode_enabled": true,
|
||||
"relax_registration_rate_limits": true
|
||||
},
|
||||
"proxy": {
|
||||
"trust_cf_connecting_ip": false
|
||||
},
|
||||
"integrations": {
|
||||
"search": {
|
||||
"url": "http://127.0.0.1:7700",
|
||||
"api_key": "test-meilisearch-master-key"
|
||||
},
|
||||
"photo_dna": {
|
||||
"enabled": true,
|
||||
"hash_service_url": "https://api.microsoftmoderator.com/photodna/v1.0/Hash",
|
||||
"hash_service_timeout_ms": 30000,
|
||||
"match_endpoint": "https://api.microsoftmoderator.com/photodna/v1.0/Match",
|
||||
"subscription_key": "test-subscription-key",
|
||||
"match_enhance": false,
|
||||
"rate_limit_rps": 10
|
||||
},
|
||||
"stripe": {
|
||||
"enabled": true,
|
||||
"secret_key": "sk_test_mock_key_for_testing",
|
||||
"webhook_secret": "whsec_test_mock_webhook_secret"
|
||||
}
|
||||
}
|
||||
}
|
||||
16
config/livekit.example.yaml
Normal file
16
config/livekit.example.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
port: 7880
|
||||
|
||||
keys:
|
||||
'<replace-with-api-key>': '<replace-with-api-secret>'
|
||||
|
||||
rtc:
|
||||
tcp_port: 7881
|
||||
|
||||
turn:
|
||||
enabled: true
|
||||
udp_port: 3478
|
||||
|
||||
room:
|
||||
auto_create: true
|
||||
max_participants: 100
|
||||
empty_timeout: 300
|
||||
Reference in New Issue
Block a user