From cfb75ebb7189fde9d03c54c073971b6852a9953d Mon Sep 17 00:00:00 2001 From: augustus Date: Wed, 17 Jun 2026 20:14:22 +0300 Subject: [PATCH] Adds App Suite config --- com-safaricom-app-suite-ms-core-localhost.yml | 42 ++++++++++++++++++ ...safaricom-app-suite-ms-core-production.yml | 44 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 com-safaricom-app-suite-ms-core-localhost.yml create mode 100644 com-safaricom-app-suite-ms-core-production.yml diff --git a/com-safaricom-app-suite-ms-core-localhost.yml b/com-safaricom-app-suite-ms-core-localhost.yml new file mode 100644 index 0000000..4a96669 --- /dev/null +++ b/com-safaricom-app-suite-ms-core-localhost.yml @@ -0,0 +1,42 @@ +server: + port: 6788 +spring: + application: + name: com-safaricom-app-suite-ms-core + data: + redis: + host: localhost + port: 6379 + datasource: + url: jdbc:postgresql://localhost:5432/ms_app_suite + username: root + password: password + driver-class-name: org.postgresql.Driver + jpa: + show-sql: false + hibernate: + ddl-auto: update + database-platform: org.hibernate.dialect.PostgreSQLDialect +logging: + pattern: + console: "%d{HH:mm:ss.SSS} [%X{requestId}] %-5level %logger{36} - %msg%n" +cors: + allowed-origins: + - http://localhost:9089 +jwt: + secret: U7R7yI7oF5wI5Of5qTnS83uWhhRr9mY8ftkbvEtN/fc= + access: + expiration: 900000 + refresh: + expiration: 604800000 + verification: + expiration: 86400000 + device: + expiration: 86400000 +s3: + endpoint: https://api.storage.kilimo.farm + region: us-east-1 + access-key: tbSuDwtmr1SOUd2uwWxi + secret-key: QAmtiJKYdrIeKmDSMPuYi4IYDgh7m0NPVR3yTQrI + bucket-name: shilling + file-expiry: 1 \ No newline at end of file diff --git a/com-safaricom-app-suite-ms-core-production.yml b/com-safaricom-app-suite-ms-core-production.yml new file mode 100644 index 0000000..ce9ac19 --- /dev/null +++ b/com-safaricom-app-suite-ms-core-production.yml @@ -0,0 +1,44 @@ +server: + port: 6788 +spring: + application: + name: com-safaricom-app-suite-ms-core + data: + redis: + host: redis + port: 6379 + datasource: + url: jdbc:postgresql://postgres:5432/ms_app_suite + # username: apiuser + # password: 4hKiOnTqbP2kLwR + username: postgres + password: CHANGE_ME_POSTGRES + driver-class-name: org.postgresql.Driver + jpa: + show-sql: false + hibernate: + ddl-auto: update + database-platform: org.hibernate.dialect.PostgreSQLDialect +logging: + pattern: + console: "%d{HH:mm:ss.SSS} [%X{requestId}] %-5level %logger{36} - %msg%n" +cors: + allowed-origins: + - https://zp1v56uxy8rdx5ypatb0ockcb9tr6a-oci3-m1d8v647--5173--96435430.local-credentialless.webcontainer-api.io/ +jwt: + secret: U7R7yI7oF5wI5Of5qTnS83uWhhRr9mY8ftkbvEtN/fc= + access: + expiration: 900000 + refresh: + expiration: 604800000 + verification: + expiration: 86400000 + device: + expiration: 86400000 +s3: + endpoint: https://api.storage.kilimo.farm + region: us-east-1 + access-key: FVNLhRSDpO0huRX2WeCc + secret-key: fbtEZTZaMFwB1LLMBrbsxHTbN4oFIqwYCSfBHVCF + bucket-name: shilling + file-expiry: 3 \ No newline at end of file