- JwtProperties.adminSecret/appSecret 默认值从 dev 密钥改为空字符串 - MediaProperties.signatureSecret 默认值从 dev 密钥改为空字符串 - app-api/admin-api application.yml 三处密钥回退值均改为空 - docker-compose.yml CORS_ALLOWED_ORIGINS 追加 ymb-site 3007 端口白名单 - .gitignore 追加 *.secrets.env / SSL 证书 / nginx 部署目录忽略规则
This commit is contained in:
1 parent
a706621786
commit
a5c9357a24
6 files changed
+27
-15
No files matched your search
+4
-4
@@ -11,17 +11,17 @@ import org.springframework.stereotype.Component;
|
||||
@ConfigurationProperties(prefix = "fruitshorts.jwt")
|
||||
public class JwtProperties {
|
||||
|
||||
/** 管理端签名密钥,长度必须 >= 32 字节。生产环境通过环境变量注入。 */
|
||||
private String adminSecret = "fruitshorts-admin-dev-secret-change-me-in-production-32b";
|
||||
/** 管理端签名密钥,长度必须 >= 32 字节。**所有环境必须通过环境变量注入,不设任何默认值。** */
|
||||
private String adminSecret = "";
|
||||
|
||||
/** 管理端 token 有效期(小时)。 */
|
||||
private int adminTtlHours = 12;
|
||||
|
||||
/**
|
||||
* 客户端签名密钥。与管理端物理隔离:管理端 token 拿到客户端接口上无法通过验签,
|
||||
* 反之亦然。生产环境必须通过环境变量注入,不要沿用默认值。
|
||||
* 反之亦然。**所有环境必须通过环境变量注入,不设任何默认值。**
|
||||
*/
|
||||
private String appSecret = "fruitshorts-app-dev-secret-change-me-in-production-32bytes";
|
||||
private String appSecret = "";
|
||||
|
||||
/** 客户端 access token 有效期(分钟)。 */
|
||||
private int appAccessTtlMinutes = 120;
|
||||
|
||||
Reference in new issue
Block a user