-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat($Gateway): secure gateway swagger
Configure `allowApplicationList` in application-*.yml
- Loading branch information
1 parent
b2e14ee
commit 9207062
Showing
7 changed files
with
80 additions
and
11 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...way/src/main/java/com/jmsoftware/gateway/universal/configuration/CustomConfiguration.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,26 @@ | ||
package com.jmsoftware.gateway.universal.configuration; | ||
|
||
import com.google.common.collect.Lists; | ||
import lombok.Data; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* <h1>CustomConfiguration</h1> | ||
* <p>Custom configurations which are written in .yml files, containing a variety of fragmentary configs. Such as, | ||
* Druid login info, web security switch, web log and so on.</p> | ||
* | ||
* @author Johnny Miller (鍾俊), email: johnnysviva@outlook.com | ||
* @date 2019-03-23 14:24 | ||
**/ | ||
@Data | ||
@Component | ||
@ConfigurationProperties(prefix = "custom.configuration") | ||
public class CustomConfiguration { | ||
/** | ||
* The Allowed application list. If it's empty, gateway will allow all request to any applications (microservices) | ||
*/ | ||
private List<String> allowedApplicationList = Lists.newLinkedList(); | ||
} |
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
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
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