Procházet zdrojové kódy

Updated latest application yml file from crss-repo.

Nas Villanueva před 9 roky
rodič
revize
fd133bc6d5
11 změnil soubory, kde provedl 231 přidání a 125 odebrání
  1. 0 61
      admin-dev.yml
  2. 0 64
      admin.yml
  3. 0 0
      crss-admin-common.yml
  4. 37 0
      crss-admin-dev.yml
  5. 15 0
      crss-admin-devoracle.yml
  6. 15 0
      crss-admin-prod.yml
  7. 16 0
      crss-admin-staging.yml
  8. 49 0
      crss-admin.yml
  9. 2 0
      crss-ui-dev.yml
  10. 4 0
      crss-ui-staging.yml
  11. 93 0
      crss-ui.yml

+ 0 - 61
admin-dev.yml

@@ -1,61 +0,0 @@
-spring:
-  datasource:
-    platform : postgres
-    url: jdbc:postgresql://localhost:5432/crss_admin
-    username: crss_admin
-    password: crss_admin
-    driverClassName: org.postgresql.Driver
-  jpa:
-    database: POSTGRESQL
-    show-sql: true
-    hibernate:
-      ddl-auto: update
-    properties:
-      jadira.usertype.autoRegisterUserTypes: true
-      javax.persistence.schema-generation.database.action: none
-      javax.persistence.schema-generation.create-source: metadata
-      javax.persistence.schema-generation.scripts.action: drop-and-create
-      javax.persistence.schema-generation.scripts.create-target: create.sql
-      javax.persistence.schema-generation.scripts.drop-target: drop.sql
-  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
-
-security:
-  oauth2:
-    resource:
-      userInfoUri: http://localhost:8090/user
-
-server:
-  port: 8081
-  undertow:
-    accesslog:
-      dir: target/logs
-      enabled: true
-      pattern: combined
-  compression:
-    enabled: true
-    min-response-size: 1
-  jackson:
-   # for further customization please consult the documentation:
-   # http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-customize-the-jackson-objectmapper
-   # https://github.com/FasterXML/jackson-databind/wiki
-   # deserialization:
-   #   FAIL_ON_UNKNOWN_PROPERTIES: true
-   #   DEFAULT_VIEW_INCLUSION: true
-
-storage:
-  file:
-    rootFolder: registration-dir

+ 0 - 64
admin.yml

@@ -1,64 +0,0 @@
-spring:
-  datasource:
-    platform : oracle
-    url: jdbc:oracle:thin:@192.168.241.62:1521:ORCL
-    username: crss
-    password: crss
-    driverClassName: oracle.jdbc.OracleDriver
-    tomcat:
-      # Number of ms to wait before throwing an exception if no connection is available.
-      max-wait: 10000
-      # Maximum number of active connections that can be allocated from this pool at the same time.
-      max-active: 50
-      # Validate the connection before borrowing it from the pool.
-      test-on-borrow: true
-  jpa:
-    database: ORACLE
-    show-sql: true
-    properties:
-      jadira.usertype.autoRegisterUserTypes: true
-  http:
-    multipart:
-      maxFileSize: "25Mb"
-      maxRequestSize: "25Mb"
-
-  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
-
-security:
-  oauth2:
-    resource:
-      userInfoUri: http://localhost:8090/user
-
-server:
-  undertow:
-    accesslog:
-      dir: target/logs
-      enabled: true
-      pattern: combined
-  compression:
-    enabled: true
-    min-response-size: 1
-  jackson:
-   # for further customization please consult the documentation:
-   # http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-customize-the-jackson-objectmapper
-   # https://github.com/FasterXML/jackson-databind/wiki
-   # deserialization:
-   #   FAIL_ON_UNKNOWN_PROPERTIES: true
-   #   DEFAULT_VIEW_INCLUSION: true
-
-storage:
-  file:
-    rootFolder: registration-dir

+ 0 - 0
crss-admin-common.yml


+ 37 - 0
crss-admin-dev.yml

@@ -0,0 +1,37 @@
+spring:
+  datasource:
+    platform : postgres
+    url: jdbc:postgresql://localhost:5432/crss_admin
+    username: crss_admin
+    password: crss_admin
+    driverClassName: org.postgresql.Driver
+  jpa:
+    database: POSTGRESQL
+    show-sql: true
+    hibernate:
+      ddl-auto: update
+    properties:
+      jadira.usertype.autoRegisterUserTypes: true
+      javax.persistence.schema-generation.database.action: none
+      javax.persistence.schema-generation.create-source: metadata
+      javax.persistence.schema-generation.scripts.action: drop-and-create
+      javax.persistence.schema-generation.scripts.create-target: target/create.sql
+      javax.persistence.schema-generation.scripts.drop-target: target/drop.sql
+server:
+  port: 8082
+
+graylog.host: localhost
+
+crss:
+  ldap:
+    embedded: true
+    protocol: "ldap"
+    host: "localhost"
+    port: 33389
+    root-dn: "dc=wesmsys,dc=local"
+    ldif: "classpath:embedded-ldap.ldif"
+    user-search-base: ""
+    admin-user: "uid=crssadmin,ou=Administrators,dc=wesmsys,dc=local"
+    admin-password: "1qaz@WSX"
+    username-field: "uid"
+    domain: "wesmsys.local"

+ 15 - 0
crss-admin-devoracle.yml

@@ -0,0 +1,15 @@
+spring:
+  datasource:
+    platform: oracle
+    url: jdbc:oracle:thin:@localhost:1521/xe
+    username: pemccrss
+    password: secretpassword
+    driverClassName: oracle.jdbc.OracleDriver
+  jpa:
+    database: ORACLE
+    show-sql: true
+    hibernate:
+      ddl-auto: update
+
+graylog:
+  host: pemc.integration.exist.com

+ 15 - 0
crss-admin-prod.yml

@@ -0,0 +1,15 @@
+#sample values. do not use yet
+spring:
+  profiles: prod
+  datasource:
+    platform: oracle
+    url: jdbc:oracle:thin:@//[HOST][:PORT]/SERVICE
+    username: foo
+    password: bar
+    driverClassName: oracle.jdbc.OracleDriver
+  jpa:
+    database: ORACLE
+    show-sql: true
+
+graylog:
+  host: TODO

+ 16 - 0
crss-admin-staging.yml

@@ -0,0 +1,16 @@
+spring:
+  datasource:
+    platform: oracle
+    url: jdbc:oracle:thin:@192.168.241.62:1521:ORCL
+    username: crss_admin
+    password: crss_admin
+    driverClassName: oracle.jdbc.OracleDriver
+    hikari:
+      connectionTimeout: 10000
+      maximumPoolSize: 20
+  jpa:
+    database: ORACLE
+    show-sql: true
+
+graylog:
+  host: pemc.integration.exist.com

+ 49 - 0
crss-admin.yml

@@ -0,0 +1,49 @@
+spring:
+  jpa:
+    properties:
+      jadira.usertype.autoRegisterUserTypes: true
+  http:
+    multipart:
+      maxFileSize: "25Mb"
+      maxRequestSize: "25Mb"
+security:
+  oauth2:
+    client:
+      accessTokenUri: http://localhost:8082/oauth/access_token
+      userAuthorizationUri: http://localhost:8082/oauth/authorize
+      clientId: crss
+      clientSecret: crsssecret
+      authorized-grant-types: authorization_code,refresh_token,password
+      scope: openid
+      access-token-validity-seconds: 3600
+    resource:
+      userInfoUri: http://localhost:8082/user
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:8761/eureka/
+      #    healthcheck:
+      #      enabled: true
+    lease:
+      duration: 5
+  instance:
+    leaseRenewalIntervalInSeconds: 1
+    leaseExpirationDurationInSeconds: 2
+
+feign:
+  hystrix:
+    enabled: false
+
+crss:
+  ldap:
+    protocol: "ldap"
+    host: "pemc-ad.manila.exist.com"
+    port: 389
+    root-dn: "dc=wesmsys,dc=local"
+    user-search-base: ""
+    admin-user: "wesmsys\\crssadmin"
+    admin-password: "1qaz@WSX"
+    username-field: "userPrincipalName"
+    domain: "wesmsys.local"
+    embedded: false

+ 2 - 0
crss-ui-dev.yml

@@ -0,0 +1,2 @@
+graylog:
+  host: localhost

+ 4 - 0
crss-ui-staging.yml

@@ -0,0 +1,4 @@
+spring:
+  profiles: staging
+
+graylog.host: pemc.integration.exist.com

+ 93 - 0
crss-ui.yml

@@ -0,0 +1,93 @@
+zuul:
+  ignoredServices: '*'
+  #default is Cookie,Set-Cookie,Authorization.
+  #removed Authorization from senstiive headers
+  sensitiveHeaders: 'Cookie,Set-Cookie'
+  routes:
+    applicant:
+      path: /applicant/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    document:
+      path: /documents/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    approval:
+      path: /approval/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    organization:
+      path: /organizations/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    participant:
+      path: /participants/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    contact:
+      path: /contacts/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    mirf:
+      path: /mirf/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    admin:
+      path: /admin/**
+      stripPrefix: false
+      serviceId: crss-admin
+
+    oauthToken:
+      path: /oauth/**
+      stripPrefix: false
+      serviceId: crss-admin
+
+    oauthUser:
+      path: /user
+      stripPrefix: false
+      serviceId: crss-admin
+
+    meterInfo:
+      path: /meter-info/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+    remarks:
+      path: /remarks/**
+      stripPrefix: false
+      serviceId: crss-reg
+
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:8761/eureka/
+
+hystrix:
+  command:
+    default:
+      execution:
+        isolation:
+          thread:
+            timeoutInMilliseconds: 300000
+
+ribbon:
+  ConnectTimeout: 3000
+  ReadTimeout: 60000
+  maxAutoRetries: 1
+  MaxAutoRetriesNextServer: 2
+
+# NOTE: since the server is undertow who serve the static pages, the uploads config must be set here also
+#       if size was modified please update also the registration's application.yml
+spring:
+  http:
+    multipart:
+      max-file-size: "25Mb"
+      max-request-size: "25Mb"