From 3493167282510de74e214697ebd9fae912907731 Mon Sep 17 00:00:00 2001 From: jack30724 Date: Tue, 3 Dec 2024 15:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E5=85=B3=E6=89=80=E9=9C=80=E7=9A=84?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E9=87=87=E7=94=A8=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=9C=A8=20start.sh=20=E4=B8=AD=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F=E6=9D=A5=E5=90=AF=E5=8A=A8=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 688ab66..be1a462 100644 --- a/start.sh +++ b/start.sh @@ -11,6 +11,8 @@ fi # space-gateway echo "starting space-gateway... " +source /aospace/opt/tmp/aospace-gateway.env || true + export APP_BOX_PUBLIC_KEY_LOCATION=/aospace/etc/ao-space/box_key_pub.pem export APP_BOX_PRIVATE_KEY_LOCATION=/aospace/etc/ao-space/box_key.pem export APP_CLIENT_PUBLIC_KEY_LOCATION=/aospace/etc/ao-space/client_key_pub.pem @@ -27,12 +29,24 @@ export APP_ACCOUNT_DATA_LOCATION=/aospace/opt/eulixspace/data/ export MAX_INVITE_MEMBER_COUNT=9 export APP_INTERNET_SERVICE_CONFIG=/aospace/etc/ao-space/internet_service_config.json -source /aospace/opt/tmp/aospace-gateway.env -export APP_BOX_BTID=$(jq -r '.btid' /aospace/etc/ao-space/box_info.json) -export APP_SYSTEM_AGENT_URL_DEVICE_INFO=http://localhost:5680/agent/v1/api/device/info +export APP_BOX_UUID=$(jq -r '.boxUuid' /aospace/etc/ao-space/box_info.json) +export APP_SECURITY_API_URL=http://localhost:9200/security/v1/api +export APP_BOX_KEYFINGERPRINT=$(openssl rsa -pubin -in /aospace/etc/ao-space/box_key_pub.pem -outform DER 2>/dev/null | openssl dgst -md5 -hex | awk '{print $2}') +export APP_BOX_DEPLOY_METHOD=DockerBox +export APP_PSPLATFORM_URL=https://ao.space export APP_ACCOUNT_SYSTEM_AGENT_URL_DEVICE_INFO=http://localhost:5680/agent/v1/api/device/info +export APP_SYSTEM_AGENT_URL_DEVICE_INFO=http://localhost:5680/agent/v1/api/device/info +export APP_BOX_SUPPORT_SECURITY_CHIP=false +export APP_BOX_SUPPORT_EXTERNAL_DISK=false +export APP_BOX_BTID=$(jq -r '.btid' /aospace/etc/ao-space/box_info.json) +export APP_SSPLATFORM_URL=https://ao.space +export APP_APPSTORE_APPSIGN_URL=https://auth.apps.ao.space +export APP_APPSTORE_APPAPI_URL=https://api.apps.ao.space +export APP_BOX_VERSION=0.9.0 +export APP_BOX_DEVICE_MODEL_NUMBER=-200 export APP_SYSTEM_AGENT_URL_BASE=http://localhost:5680/agent/v1/api -export APP_SECURITY_API_URL=http://localhost:9200/security/v1/api +export APP_VERSION_TYPE=open_source + nohup java -jar -Dquarkus.http.host=0.0.0.0 /deployments/quarkus-run.jar 2>&1 & # space-aofs