Files
lynq-chat/config/example.yaml
T
2026-03-18 22:42:33 +09:00

45 lines
969 B
YAML
Executable File

# サーバー設定
server:
# 配信ポート
# number
# 0から65535が使用できます。
port: 3300
# 配信ホスト
# string
host: 0.0.0.0
# 信用するX-Forwarded-*
# string | Array<string> | boolean | (string, number) => boolean
# Fastifyのドキュメントで定められているFunctionは、
# trustProxy: !!js/function >
# function (addr, hop) {/* Here your code. */}
# である必要があります。
# この例はRFC1918で定めるプライベートIPアドレスです。
# 詳細: https://fastify.dev/docs/latest/Reference/Server/#trustproxy
trustProxy:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
# PostgreSQL設定
database:
# ユーザー名
# string
user: user
# パスワード
# string
password: password
# ホスト
# string
host: localhost
# ポート
# number
# 0から65535が使用できます。
port: 5432
# データベース名
database: chat