-
Notifications
You must be signed in to change notification settings - Fork 969
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
576 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...uth/src/main/java/com/pig4cloud/pig/auth/support/filter/AuthSecurityConfigProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.pig4cloud.pig.auth.support.filter; | ||
|
||
import lombok.Data; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.cloud.context.config.annotation.RefreshScope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author lengleng | ||
* @date 2020/10/4 | ||
* <p> | ||
* 网关配置文件 | ||
*/ | ||
@Data | ||
@Component | ||
@RefreshScope | ||
@ConfigurationProperties("security") | ||
public class AuthSecurityConfigProperties { | ||
|
||
/** | ||
* 是否是微服务架构 | ||
*/ | ||
private boolean isMicro; | ||
|
||
/** | ||
* 网关解密登录前端密码 秘钥 | ||
*/ | ||
private String encodeKey; | ||
|
||
/** | ||
* 网关不需要校验验证码的客户端 | ||
*/ | ||
private List<String> ignoreClients; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM alibabadragonwell/dragonwell:21-anolis | ||
|
||
WORKDIR /pig-boot | ||
|
||
ARG JAR_FILE=target/pig-boot.jar | ||
|
||
COPY ${JAR_FILE} app.jar | ||
|
||
EXPOSE 9999 | ||
|
||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" | ||
|
||
CMD sleep 60; java $JAVA_OPTS -jar app.jar |
Oops, something went wrong.