38 lines
899 B
Plaintext
38 lines
899 B
Plaintext
# ShrinkNetwork server.properties
|
|
# 类似 Minecraft 的 key=value 配置文件。
|
|
# 优先级:代码默认值 < 本文件 < 环境变量。
|
|
# 修改后需要重启服务器进程。
|
|
|
|
# 基础网络
|
|
server-port=17777
|
|
|
|
# 代码扫描与生成
|
|
unity-assets-path=../../Assets
|
|
scan-output-directory=Generated
|
|
enable-unity-code-scan=true
|
|
|
|
# 登录与会话
|
|
shared-auth-token=
|
|
allow-anonymous-when-auth-token-missing=false
|
|
enable-session-tokens=true
|
|
session-token-ttl-seconds=1800
|
|
session-token-refresh-window-seconds=300
|
|
disconnect-on-invalid-session-token=true
|
|
|
|
# 协议兼容
|
|
min-protocol-version=1
|
|
max-protocol-version=1
|
|
min-schema-version=1
|
|
max-schema-version=1
|
|
disconnect-on-protocol-violation=true
|
|
|
|
# 观测
|
|
diagnostics-log-interval-seconds=60
|
|
|
|
# TCP TLS
|
|
enable-tcp-tls=false
|
|
tcp-tls-target-host=
|
|
tcp-tls-certificate-path=
|
|
tcp-tls-certificate-password=
|
|
tcp-tls-check-certificate-revocation=false
|