Commit b13544b8 authored by nanahira's avatar nanahira

license

parent 4586f526
Pipeline #10236 passed with stages
in 17 seconds
The MIT License (MIT)
Copyright (c) 2022 Nanahira
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
......@@ -4,7 +4,7 @@
"version": "PTDL_v1",
"update_url": null
},
"exported_at": "2022-03-03T00:02:15+08:00",
"exported_at": "2022-03-03T00:51:24+08:00",
"name": "Koishi",
"author": "nanahira@momobako.com",
"description": "Chatbot.",
......@@ -15,24 +15,33 @@
"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}",
"files": "{\r\n \"koishi.config.yml\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"host\": \"0.0.0.0\",\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"plugins.console.open\": false,\r\n \"plugins.console.selfUrl\": \"{{env.URL_PREFIX}}{{server.build.default.port}}\",\r\n \"plugins.dataview.$placeholder\": true,\r\n \"plugins.logger.$placeholder\": true,\r\n \"plugins.manager.$placeholder\": true,\r\n \"plugins.status.$placeholder\": true,\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",
"script": "#!\/bin\/bash\r\n\r\nnpm i -g create-koishi\r\necho \"koishi-app\" | create-koishi\r\n\r\nmv koishi-app\/* \/mnt\/server\/\r\nmv koishi-app\/.editorconfig \/mnt\/server\/\r\nmv koishi-app\/.gitignore \/mnt\/server\/",
"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.",
"name": "Access address",
"description": "Address to access Koishi web UI, excluding the path.",
"env_variable": "ACCESS_ADDRESS",
"default_value": "https:\/\/panel.momobako.com",
"user_viewable": true,
"user_editable": false,
"rules": "required|string"
},
{
"name": "URL Path prefix",
"description": "Prefix for URL. The allocated port of container would be added after this URL.\r\neg. \/koishi\/ would become \/koishi\/20000 if the allocated port is 20000.",
"env_variable": "URL_PREFIX",
"default_value": "http:\/\/localhost:",
"default_value": "\/koishi\/",
"user_viewable": true,
"user_editable": false,
"rules": "required|string"
......
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