diff --git a/.gitignore b/.gitignore index c45a24e3..5862c9fb 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,12 @@ app/__pycache__/ logs/ *.pyc __pycache__/ +conf/config.json +sage.pid +sage_backend.pid +start.sh +stop.sh +wwwroot/bricks +wwwroot/bugfix +wwwroot/pricing +wwwroot/supplychain diff --git a/conf/config.json b/conf/config.json deleted file mode 100755 index 49c28f2b..00000000 --- a/conf/config.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "password_key":"!@#$%^&*(*&^%$QWERTYUIqwertyui234567", - "logopath": "$[workdir]$/conf/logo.png", - "woa_handler_id":"woa_subscribe_type", - { - "hot_reload": { - "enabled": true, - "interval": 5 - } - }, - "logger":{ - "name":"sage", - "levelname":"warning", - "logfile":"$[workdir]$/logs/sage.log" - }, - "tpacs":{ - "cnprod":{ - "get_tpac_balance_url": "https://www.opencomputing.cn/cntoai/get_user_balance.dspy", - "tpac_accounting_url": "https://www.opencomputing.cn/cntoai/process_user_billing.dspy" - }, - "ncmatchdemo":{ - "get_tpac_balance_url": "https://www.ncmatch.cn/cntoai/get_user_balance.dspy", - "tpac_accounting_url": "https://www.ncmatch.cn/cntoai/process_user_billing.dspy" - }, - "cndemo": { - "get_tpac_balance_url": "https://dev.opencomputing.cn/cntoai/get_user_balance.dspy", - "tpac_accounting_url": "https://dev.opencomputing.cn/cntoai/process_user_billing.dspy" - } - }, - - "pay":{ - "alipay":{ - "public_key_file":"$[workdir]$/conf/alipay/public.txt", - "private_key_file":"$[workdir]$/conf/alipay/private.txt", - "appid":"2021005111636494", - "callback":"https://sage.opencomputing.cn/api/callback/alipay" - }, - "paypal":{ - "mode":"sandbox", - "client_id":"myid", - "client_secret":"mysecret", - "return_url":"ret_url", - "cancel_url":"cancel_url" - } - }, - "skills_path": "$[workdir]$/skills", - "filesroot":"$[workdir]$/files", - "databases":{ - "sage":{ - "driver":"mysql", - "kwargs":{ - "user":"test", - "db":"sage", - "password":"SS+C1MDMJrslBwGzYIv3nQ==", - "charset": "utf8mb4", - "host":"db" - } - } - }, - "zmq_url": "tcp://127.0.0.1:5555", - "website":{ - "paths":[ - ["$[workdir]$/wwwroot",""] - ], - "client_max_size":1000000000, - "host":"0.0.0.0", - "port":9080, - "coding":"utf-8", - "ssl_gg":{ - "crtfile":"$[workdir]$/conf/www.bsppo.com.pem", - "keyfile":"$[workdir]$/conf/www.bsppo.com.key" - }, - "indexes":[ - "index.html", - "index.tmpl", - "index.ui", - "index.dspy", - "index.md" - ], - "startswiths":[ - { - "leading":"/idfile", - "registerfunction":"idfile" - },{ - "leading":"/i18n_getmsgs", - "registerfunction":"i18n" - } - ], - "processors":[ - [".ws","ws"], - [".wss","ws"], - [".xterm","xterm"], - [".proxy","proxy"], - [".llm", "llm"], - [".llms", "llms"], - [".llma", "llma"], - [".xlsxds","xlsxds"], - [".sqlds","sqlds"], - [".tmpl.js","tmpl"], - [".tmpl.css","tmpl"], - [".html.tmpl","tmpl"], - [".bcrud", "bricks_crud"], - [".tmpl","tmpl"], - [".app","app"], - [".bui","bui"], - [".ui","bui"], - [".dspy","dspy"], - [".md","md"] - ], - "rsakey":{ - "privatekey":"$[workdir]$/conf/rsa_private_key.pem", - "publickey":"$[workdir]$/conf/rsa_public_key.pem" - }, - "session_max_time":3000, - "session_issue_time":2500, - "session_redis":{ - "url":"redis://127.0.0.1:6379" - } - }, - "langMapping":{ - "zh-Hans-CN":"zh-cn", - "zh-CN":"zh-cn", - "en-us":"en", - "en-US":"en" - }, - "module_cache":{ - "rbac":true, - "pricing":true, - "uapi":true - } -} - diff --git a/sage.pid b/sage.pid deleted file mode 100644 index fc702102..00000000 --- a/sage.pid +++ /dev/null @@ -1,4 +0,0 @@ -3380351 -3380384 -3380535 -3380576 diff --git a/sage_backend.pid b/sage_backend.pid deleted file mode 100644 index 6904922d..00000000 --- a/sage_backend.pid +++ /dev/null @@ -1 +0,0 @@ -backend_accounting:3380343 diff --git a/start.sh b/start.sh deleted file mode 100755 index 02a5c99c..00000000 --- a/start.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/bash -cd /home/hermesai/repos/sage -/home/hermesai/repos/sage/py3/bin/python /home/hermesai/repos/sage/app/sage.py -p 9180 -w /home/hermesai/repos/sage & -exit 0 diff --git a/stop.sh b/stop.sh deleted file mode 100755 index 61a513cc..00000000 --- a/stop.sh +++ /dev/null @@ -1,2 +0,0 @@ -PID=$(lsof -t -i:9180) -kill -9 $PID diff --git a/wwwroot/bricks b/wwwroot/bricks deleted file mode 120000 index 5f362d28..00000000 --- a/wwwroot/bricks +++ /dev/null @@ -1 +0,0 @@ -../../bricks/dist \ No newline at end of file diff --git a/wwwroot/bugfix b/wwwroot/bugfix deleted file mode 120000 index ac5d853c..00000000 --- a/wwwroot/bugfix +++ /dev/null @@ -1 +0,0 @@ -/home/hermesai/test/bugfix/wwwroot \ No newline at end of file diff --git a/wwwroot/pricing b/wwwroot/pricing deleted file mode 120000 index c8d9eaca..00000000 --- a/wwwroot/pricing +++ /dev/null @@ -1 +0,0 @@ -/home/hermesai/repos/pricing/wwwroot \ No newline at end of file diff --git a/wwwroot/supplychain b/wwwroot/supplychain deleted file mode 120000 index bc3bd63b..00000000 --- a/wwwroot/supplychain +++ /dev/null @@ -1 +0,0 @@ -/home/hermesai/repos/supplychain/wwwroot \ No newline at end of file