Skip to content

Commit

Permalink
perf($ORM): migrate sftp-integration to spring-boot-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Miller (锺俊) committed Jan 14, 2021
1 parent 7af0ccc commit c860ffa
Show file tree
Hide file tree
Showing 46 changed files with 592 additions and 230 deletions.
5 changes: 0 additions & 5 deletions auth-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</dependency>

<!-- https://github.com/jwtk/jjwt -->
<!-- Cannot Remove jjwt dependencies, cuz the login process is in here `auth-center`,
and the auth process is in `api-gateway` -->
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ sftp:
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000

maf:
configuration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ sftp:
port: 23
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000

maf:
configuration:
Expand Down
5 changes: 0 additions & 5 deletions auth-center/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ sftp:
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000

maf:
configuration:
Expand Down
5 changes: 0 additions & 5 deletions auth-center/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ sftp:
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000

maf:
configuration:
Expand Down
5 changes: 0 additions & 5 deletions auth-center/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ sftp:
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000

maf:
configuration:
Expand Down
9 changes: 9 additions & 0 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,12 @@ jwt:
# an hour
ttl: 3600000
ttl-for-remember-me: 604800000

sftp:
client:
configuration:
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.dev
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: localhost
port: 23
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: false
8 changes: 8 additions & 0 deletions exercise-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: true
8 changes: 8 additions & 0 deletions exercise-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: true
8 changes: 8 additions & 0 deletions exercise-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: true
9 changes: 9 additions & 0 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ maf:
- "/webjars/**"
- "/doc.html"
included-package-for-http-api-scan: ${project.property.base-package}

sftp:
client:
configuration:
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.dev
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ logging:
level:
com.jcraft.jsch: INFO

sftp:
client:
configuration:
host: localhost
port: 23
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: false
8 changes: 8 additions & 0 deletions muscle-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ spring:
port: 6379
password: 123456

sftp:
client:
configuration:
host: maf.atmoz-sftp.production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-disabled: true
Loading

0 comments on commit c860ffa

Please sign in to comment.