提交开发分支未提交代码并修正配置
This commit is contained in:
@@ -7,18 +7,18 @@ import org.springframework.context.annotation.Configuration;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 网关白名单配置
|
||||
* 网关白名单配置。
|
||||
*
|
||||
* @author xiaowang
|
||||
* @date 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "yuminail.gateway")
|
||||
@ConfigurationProperties(prefix = "fingertip-designer.gateway")
|
||||
public class GatewayConfig {
|
||||
|
||||
/**
|
||||
* 白名单路径列表
|
||||
* 白名单路径列表。
|
||||
*/
|
||||
private List<String> whitelist;
|
||||
|
||||
|
||||
@@ -9,12 +9,12 @@ import org.springframework.context.annotation.Configuration;
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "yuminail.security.jwt")
|
||||
@ConfigurationProperties(prefix = "fingertip-designer.security.jwt")
|
||||
public class JwtProperties {
|
||||
|
||||
private String secret = "yuminail-secret-key-for-jwt-token-generation-2026-must-be-at-least-512-bits-long-for-hs512-algorithm-security-requirements";
|
||||
private String secret = "fingertip-designer-secret-key-for-jwt-token-generation-2026-must-be-at-least-512-bits-long-for-hs512-algorithm-security-requirements";
|
||||
|
||||
private String issuer = "yuminail";
|
||||
private String issuer = "fingertip-designer";
|
||||
|
||||
private long clockSkewSeconds = 30;
|
||||
}
|
||||
|
||||
+2
-2
@@ -40,11 +40,11 @@ public class HealthController {
|
||||
|
||||
private Map<String, Object> diagnosticsPayload() {
|
||||
Map<String, Object> diagnostics = new LinkedHashMap<>();
|
||||
String serviceName = environment.getProperty("spring.application.name", "yuminail-gateway");
|
||||
String serviceName = environment.getProperty("spring.application.name", "fingertip-designer-gateway");
|
||||
diagnostics.put("service", serviceName);
|
||||
diagnostics.put("port", environment.getProperty("server.port", ""));
|
||||
diagnostics.put("gatewayService", discoverySummary(serviceName));
|
||||
diagnostics.put("coreService", discoverySummary("yumi-nail-core"));
|
||||
diagnostics.put("coreService", discoverySummary("fingertip-designer-core"));
|
||||
return diagnostics;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,37 +1,45 @@
|
||||
spring:
|
||||
application:
|
||||
name: yuminail-gateway
|
||||
name: fingertip-designer-gateway
|
||||
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: home-nacos01:8848,home-nacos02:8848,home-nacos03:8848
|
||||
namespace: YumiNail-Dev
|
||||
group: DEFAULT_GROUP
|
||||
# Nacos 集群地址,默认指向开发环境,生产环境通过环境变量覆盖。
|
||||
server-addr: ${NACOS_SERVER_ADDR:192.168.5.103:8848}
|
||||
# Nacos 命名空间,默认指向开发环境。
|
||||
namespace: ${NACOS_NAMESPACE:YumiNail-Dev}
|
||||
# 服务注册分组。
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
# 注册到 Nacos 的服务名。
|
||||
service: ${spring.application.name}
|
||||
username: xiaowang
|
||||
password: 122503wcy....
|
||||
# Nacos 认证用户名。
|
||||
username: ${NACOS_USERNAME:xiaowang}
|
||||
# Nacos 认证密码。
|
||||
password: ${NACOS_PASSWORD:122503wcy....}
|
||||
config:
|
||||
server-addr: home-nacos01:8848,home-nacos02:8848,home-nacos03:8848
|
||||
namespace: YumiNail-Dev
|
||||
group: DEFAULT_GROUP
|
||||
name: yuminail-gateway
|
||||
# Nacos 配置中心地址,与服务发现使用同一组集群节点,默认指向开发环境。
|
||||
server-addr: ${NACOS_SERVER_ADDR:192.168.5.103:8848}
|
||||
# Nacos 配置中心命名空间,默认指向开发环境。
|
||||
namespace: ${NACOS_NAMESPACE:YumiNail-Dev}
|
||||
# 配置分组。
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
# Gateway 服务独有配置文件。
|
||||
name: gateway
|
||||
# 所有 Nacos 配置均使用 YAML。
|
||||
file-extension: yaml
|
||||
username: xiaowang
|
||||
password: 122503wcy....
|
||||
# Nacos 认证用户名。
|
||||
username: ${NACOS_USERNAME:xiaowang}
|
||||
# Nacos 认证密码。
|
||||
password: ${NACOS_PASSWORD:122503wcy....}
|
||||
# Core 与 Gateway 共享的公共配置文件。
|
||||
shared-configs:
|
||||
- data-id: infra.yaml
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
refresh: true
|
||||
- data-id: secret.yaml
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
refresh: true
|
||||
- data-id: logging.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: rabbitmq.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: datasource.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: mybatis-plus.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true
|
||||
- data-id: redis.yaml
|
||||
group: DEFAULT_GROUP
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
refresh: true
|
||||
|
||||
Reference in New Issue
Block a user