Commit 4586f526 authored by nanahira's avatar nanahira

add ACCESS_ADDRESS

parent 102cf4fa
Pipeline #10235 passed with stages
in 18 seconds
{
"server.properties": {
"parser": "yaml",
"find": {
"port": "{{server.build.default.port}}",
"plugins.console.open": false,
"selfUrl": "{{env.URL_PREFIX}}{{server.build.default.port}}"
}
"koishi.config.yml": {
"parser": "yaml",
"find": {
"host": "0.0.0.0",
"port": "{{server.build.default.port}}",
"plugins.console.open": false,
"plugins.console.uiPath": "{{env.URL_PREFIX}}{{server.build.default.port}}",
"plugins.console.apiPath": "{{env.URL_PREFIX}}{{server.build.default.port}}/status",
"selfUrl": "{{env.URL_PREFIX}}{{server.build.default.port}}"
}
}
}
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1",
"update_url": null
},
"exported_at": "2022-03-03T00:02:15+08:00",
"name": "Koishi",
"author": "nanahira@momobako.com",
"description": "Chatbot.",
"features": null,
"images": [
"git-registry.mycard.moe\/3rdeye\/koishi-pterodactyl:master"
],
"file_denylist": [],
"startup": "npm start",
"config": {
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"plugins.console.open\": false,\r\n \"selfUrl\": \"{{env.URL_PREFIX}}{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"server listening at\",\r\n \"userInteraction\": []\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n\r\nnpm i -g create-koishi\r\ncd \/mnt\/server\r\necho \"koishi-app\" | create-koishi",
"container": "node:bullseye",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "URL prefix",
"description": "Prefix of value to be set in `selfUrl` field. Will be followed with container allocated port.\r\neg. `URL_PREFIX=http:\/\/localhost:` would go for `http:\/\/localhost:11111` when the allocated port being 11111.",
"env_variable": "URL_PREFIX",
"default_value": "http:\/\/localhost:",
"user_viewable": true,
"user_editable": false,
"rules": "required|string"
}
]
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ cd /home/container
echo "Installing dependencies..."
npm install
echo "Visit ${URL_PREFIX}${SERVER_PORT} for Koishi web UI."
echo "Visit ${ACCESS_ADDRESS}${URL_PREFIX}${SERVER_PORT} for Koishi web UI."
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment