微服务改造

This commit is contained in:
litianxiang
2026-04-27 13:54:03 +08:00
parent d36baf747f
commit 6068bf7d7d
3 changed files with 17 additions and 24 deletions

View File

@@ -77,7 +77,7 @@ public class PythonService {
@Value("${access.python.generate_sr_port}") @Value("${access.python.generate_sr_port}")
private String srServicePort; private String srServicePort;
@Value("${design.callback.url}") @Value("${design.callback.url.aida}")
private String callbackUrl; private String callbackUrl;
@Resource @Resource

View File

@@ -20,14 +20,6 @@ spring:
jwtTokenPrefix: Bearer- jwtTokenPrefix: Bearer-
jwtExpiration: 8640000000 jwtExpiration: 8640000000
# ---------- Python 服务 ----------
access:
python:
ip: http://18.167.251.121
port: 9994
generate_sr_port: 9994
address: http://18.167.251.121:9994
# ---------- MinIO Buckets ---------- # ---------- MinIO Buckets ----------
minio: minio:
bucketName: bucketName:
@@ -101,10 +93,6 @@ google:
redirect: redirect:
uri: https://develop.api.aida.com.hk/api/third/party/auth/google_callback uri: https://develop.api.aida.com.hk/api/third/party/auth/google_callback
design:
callback:
url: https://darkish-copied-sprinkler.ngrok-free.dev/api/third/party/receiveDesignResults
redirect: redirect:
url: http://18.167.251.121:7788 url: http://18.167.251.121:7788

View File

@@ -4,22 +4,27 @@
# 示例docker run -e NACOS_NAMESPACE=prod ... # 示例docker run -e NACOS_NAMESPACE=prod ...
# ============================================================ # ============================================================
nacos:
namespace: dev
host: 18.167.251.121:28848
username: nacos
password: Aidlab123123!
spring: spring:
application: application:
name: aida-back name: aida-seller
config: config:
import: optional:nacos:aida-public-${NACOS_NAMESPACE:test}.yml import: optional:nacos:aida-public-${nacos.namespace}.yml
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: ${NACOS_HOST:18.167.251.121:28848} server-addr: ${nacos.host}
namespace: ${NACOS_NAMESPACE:ltx} namespace: ${nacos.namespace}
username: nacos username: ${nacos.username}
password: Aidlab123123! password: ${nacos.password}
config: config:
server-addr: ${NACOS_HOST:18.167.251.121:28848} server-addr: ${nacos.host}
namespace: ${NACOS_NAMESPACE:ltx} namespace: ${nacos.namespace}
group: ${NACOS_GROUP:DEFAULT_GROUP}
file-extension: yaml file-extension: yaml
username: nacos username: ${nacos.username}
password: Aidlab123123! password: ${nacos.password}