Skip to content

Commit

Permalink
perf($Starter): dynamic SFTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Jun 8, 2021
1 parent 7d030a3 commit 4c37cc4
Show file tree
Hide file tree
Showing 27 changed files with 91 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

sftp:
client:
configuration:
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions auth-center/src/main/resources/application-development-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ logging:
com.jcraft.jsch: INFO

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions auth-center/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions auth-center/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions auth-center/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
13 changes: 6 additions & 7 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ maf:


sftp:
client:
configuration:
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
enabled: true
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 @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

sftp:
client:
configuration:
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions exercise-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions exercise-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions exercise-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
13 changes: 6 additions & 7 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,9 @@ maf:
included-package-for-http-api-scan: ${maf.project-property.base-package}

sftp:
client:
configuration:
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
enabled: true
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
10 changes: 4 additions & 6 deletions muscle-mis/src/main/resources/application-development-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

sftp:
client:
configuration:
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions muscle-mis/src/main/resources/application-development-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ logging:
com.jcraft.jsch: INFO

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions muscle-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions muscle-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
10 changes: 4 additions & 6 deletions muscle-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ spring:
password: maf@rabbitmq

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

maf:
configuration:
Expand Down
13 changes: 6 additions & 7 deletions muscle-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ maf:
included-package-for-http-api-scan: ${maf.project-property.base-package}

sftp:
client:
configuration:
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
enabled: true
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 @@ -21,10 +21,3 @@ maf:
configuration:
swagger-disabled: false

sftp:
client:
configuration:
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ spring:
maf:
configuration:
swagger-disabled: false

sftp:
client:
configuration:
host: localhost
port: 23
user: johnny
password: atmoz@sftp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ spring:
maf:
configuration:
swagger-disabled: true

sftp:
client:
configuration:
host: maf-atmoz-sftp-production
port: 22
user: johnny
password: atmoz@sftp
8 changes: 0 additions & 8 deletions spring-boot-admin/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ spring:
maf:
configuration:
swagger-disabled: true

sftp:
client:
configuration:
host: maf-atmoz-sftp-stage
port: 22
user: johnny
password: atmoz@sftp
8 changes: 0 additions & 8 deletions spring-boot-admin/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ spring:
maf:
configuration:
swagger-disabled: true

sftp:
client:
configuration:
host: maf-atmoz-sftp-test
port: 22
user: johnny
password: atmoz@sftp
9 changes: 0 additions & 9 deletions spring-boot-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,3 @@ maf:
- "/webjars/**"
- "/doc.html"
included-package-for-http-api-scan: ${maf.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 @@ -4,6 +4,7 @@
import io.minio.MinioClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
Expand Down
Loading

0 comments on commit 4c37cc4

Please sign in to comment.