Files
lynq-chat/config/example.yaml
T

50 lines
1.1 KiB
YAML
Executable File

# サーバー設定
server:
# Origin
# string
# 最終的にユーザーがリクエストするOrigin
origin: http://lynqchat.example.com
# 配信ポート
# 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