Chris Lim 9 роки тому
батько
коміт
1dfca03823
2 змінених файлів з 106 додано та 0 видалено
  1. 55 0
      authentication-dev.yml
  2. 51 0
      authentication.yml

+ 55 - 0
authentication-dev.yml

@@ -0,0 +1,55 @@
+spring:
+  datasource:
+    platform : postgres
+    url: jdbc:postgresql://localhost:5432/crss_reg
+    username: crss_reg
+    password: crss_reg
+    driverClassName: org.postgresql.Driver
+  jpa:
+    database: POSTGRESQL
+    show-sql: true
+    hibernate:
+      ddl-auto: update
+  mail:
+    host: smtp.gmail.com
+    port: 587
+    username: demo.exist.pemc@gmail.com
+    # please provide the password
+    password: $pockTest
+    properties:
+      mail.smtp.auth: true
+      mail.debug: true
+      mail.smtp.starttlls.enable: true
+      mail.smtp.starttls.required: true
+  #we dont need spring mvc here
+  freemarker:
+    enabled: false
+    template-loader-path: classpath:/mail/templates
+
+multipart:
+  maxFileSize: "25Mb"
+  maxRequestSize: "25Mb"
+storage:
+  file:
+    rootFolder: registration-dir
+
+security:
+  oauth2:
+    client:
+      clientId: crss
+      clientSecret: crsssecret
+      authorized-grant-types: authorization_code,refresh_token,password
+      scope: openid
+      access-token-validity-seconds: 3600
+
+server:
+  server:
+    port: 8090
+  undertow:
+    accesslog:
+      dir: target/logs
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1

+ 51 - 0
authentication.yml

@@ -0,0 +1,51 @@
+spring:
+  datasource:
+    platform : oracle
+    url: jdbc:oracle:thin:@//192.168.241.62:1521/ORCL
+    username: crss_reg
+    password: crss_reg
+    driverClassName: oracle.jdbc.OracleDriver
+  jpa:
+    database: ORACLE
+    show-sql: true
+  mail:
+      host: smtp.gmail.com
+      port: 587
+      # TODO: replace this values
+      username: demo.exist.pemc@gmail.com
+      password: $pockTest
+      properties:
+        mail.smtp.auth: true
+        mail.smtp.starttlls.enable: true
+        mail.smtp.starttls.required: true
+  #we dont need spring mvc here
+  freemarker:
+    enabled: false
+    template-loader-path: classpath:/mail/templates
+
+
+multipart:
+  maxFileSize: "25Mb"
+  maxRequestSize: "25Mb"
+storage:
+  file:
+    rootFolder: registration-dir
+
+security:
+  oauth2:
+    client:
+      clientId: crss
+      clientSecret: crsssecret
+      authorized-grant-types: authorization_code,refresh_token,password
+      scope: openid
+      access-token-validity-seconds: 3600
+
+server:
+  undertow:
+    accesslog:
+      dir: target/logs
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1