forked from Karylab-cklius/nagato-discord
Initial file structure.
This commit is contained in:
3
config/example.env
Normal file
3
config/example.env
Normal file
@@ -0,0 +1,3 @@
|
||||
# Example env file
|
||||
|
||||
STOAT_DOMAIN=discord.nagato.com
|
||||
7
config/example.env.web
Normal file
7
config/example.env.web
Normal file
@@ -0,0 +1,7 @@
|
||||
HOSTNAME=:80
|
||||
REVOLT_PUBLIC_URL=https://discord.nagato.com/api
|
||||
VITE_API_URL=https://discord.nagato.com/api
|
||||
VITE_WS_URL=wss://discord.nagato.com/ws
|
||||
VITE_MEDIA_URL=https://discord.nagato.com/autumn
|
||||
VITE_PROXY_URL=https://discord.nagato.com/january
|
||||
VITE_CFG_ENABLE_VIDEO=true
|
||||
20
config/livekit.yml
Normal file
20
config/livekit.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
rtc:
|
||||
use_external_ip: true
|
||||
port_range_start: 50000
|
||||
port_range_end: 50100
|
||||
tcp_port: 7881
|
||||
|
||||
redis:
|
||||
address: redis:6379
|
||||
|
||||
turn:
|
||||
enabled: false
|
||||
|
||||
keys:
|
||||
# 這裡要換成你 secret.env 裡面的 LIVEKIT_NODES_WORLDWIDE_KEY 和 SECRET
|
||||
"YOUR_LIVEKIT_KEY": "YOUR_LIVEKIT_SECRET"
|
||||
|
||||
webhook:
|
||||
api_key: "YOUR_LIVEKIT_KEY"
|
||||
urls:
|
||||
- "http://voice-ingress:8500/worldwide"
|
||||
7
config/secret.env
Normal file
7
config/secret.env
Normal file
@@ -0,0 +1,7 @@
|
||||
REVOLT__PUSHD__VAPID__PRIVATE_KEY='[生成的base64編碼密鑰]'
|
||||
REVOLT__PUSHD__VAPID__PUBLIC_KEY='[生成的base64編碼密鑰]'
|
||||
|
||||
REVOLT__FILES__ENCRYPTION_KEY='[生成的base64 32字元]'
|
||||
|
||||
REVOLT__API__LIVEKIT__NODES__WORLDWIDE__SECRET='[生成的hex 48字元]'
|
||||
REVOLT__API__LIVEKIT__NODES__WORLDWIDE__KEY='[生成的hex 12字元]'
|
||||
26
config/stoat.toml
Normal file
26
config/stoat.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
# stoat version of nagato server
|
||||
# Sources: https://github.com/stoatchat/self-hosted
|
||||
|
||||
[hosts]
|
||||
app = "https://discord.nagato.com"
|
||||
api = "https://discord.nagato.com/api"
|
||||
events = "wss://discord.nagato.com/ws"
|
||||
autumn = "https://discord.nagato.com/autumn"
|
||||
january = "https://discord.nagato.com/january"
|
||||
|
||||
[hosts.livekit]
|
||||
worldwide = "wss://discord.nagato.com/livekit"
|
||||
|
||||
[api.livekit.nodes.worldwide]
|
||||
url = "http://livekit:7880"
|
||||
lat = 0.0
|
||||
lon = 0.0
|
||||
|
||||
# (如果啟用視頻功能)
|
||||
[features.limits.new_user]
|
||||
video_resolution = [1920, 1080]
|
||||
video_aspect_ratio = [0.3, 10]
|
||||
|
||||
[features.limits.default]
|
||||
video_resolution = [1920, 1080]
|
||||
video_aspect_ratio = [0.3, 10]
|
||||
Reference in New Issue
Block a user