Merge branch 'develop' of https://git.reelshort2.com:80/jianghaifeng/FruitServer into develop
backend-ci / test (push) Failing after 4m42s
backend-ci / test (push) Failing after 4m42s
This commit is contained in:
commit
2904e59e71
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