标签:post running ada star 配置 shel lan ken always
1.下载代码
git clone https://github.com/pantsel/konga.git
cd konga
npm i
2.配置环境变量
PORT=1337
NODE_ENV=production
KONGA_HOOK_TIMEOUT=120000
DB_ADAPTER=postgres
DB_URI=postgresql://konga:konga@192.168.0.139:5432/konga
KONGA_LOG_LEVEL=warn
TOKEN_SECRET=some_secret_token
3.运行代码
node ./bin/konga.js prepare --adapter postgres --uri postgresql://localhost:5432/konga
npm run production
4.开启konga配置页面
docker下安装比较简单,参考https://github.com/pantsel/konga#running-konga
docker下运行适合生产环境。
docker run --rm pantsel/konga:latest -c prepare -a postgres -u postgresql://konga:konga@172.16.51.112:5432/konga
docker run -d --restart always -p 1337:1337 --network kong-net -e "TOKEN_SECRET=some_secret_token" -e "DB_ADAPTER=postgres" -e "DB_URI=postgresql://konga:konga@172.16.51.112:5432/konga" -e "NODE_ENV=production" --name konga pantsel/konga
标签:post running ada star 配置 shel lan ken always
原文地址:https://www.cnblogs.com/mbpframework/p/12891874.html