apiVersion: v1
kind: ConfigMap
metadata:
  name: coatrack-config
  namespace: coatrack
data:
  spring.datasource.username: coatrack
  spring.datasource.password: s838RFixF93Hv9fa
  spring.datasource.dbname: coatrack
  spring.datasource.host: cockroachdb-public.default
  spring.datasource.url: jdbc:postgresql://${spring.datasource.host}:26257/${spring.datasource.dbname}?ssl=true&sslmode=require
  spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation: "true"
  spring.jpa.properties.hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
  logging.level: INFO
  logging.level.org: INFO
  logging.level.org.springframework: INFO
  org.springframework.security: INFO
  logging.level.eu.coatrack: DEBUG

  ygg.mail.sender.from: "coatrack@kyoe.es"
  ygg.mail.sender.user: "coatrack@kyoe.es" 
  ygg.mail.sender.password: "Pepe1234"
  ygg.mail.server.url: "smtp.serviciodecorreo.es"
  ygg.mail.server.port: "465"
  ygg.admin.payment.commision.variable: "50"
  ygg.admin.payment.commision.fix: "1"
  ygg.admin.payment.commision.bookKeeping.contact: fperezduran@bebr.nl
  ygg.admin.api-base-url-for-gateway: "https://test.coatrack.eu/api/"
  ygg.admin.server.url: "https://test.coatrack.eu"
  ygg.admin.database.insertSampleDataOnStartup: "false"
  ygg.admin.gettingStarted.consumer.testService.id: "1"
  ygg.admin.gitService.url: https://bitbucket.org/perezdf/anthill-settings.git
  ygg.admin.gitService.user: fpd.judo@gmail.com
  ygg.admin.gitService.password: "fpdvip1234"
  ygg.proxy.executable-jar.path: /tmp
#  ygg.proxy.executable-jar.path: /coatrack-warehouse/proxies
  ygg.proxy.executable-jar.filename-original-prefix: coatrack-proxy-
  ygg.proxy.executable-jar.filename-custom.prefix: coatrack-gateway-
  ygg.proxy.executable-jar.filename-custom.suffix: ".jar"
  ygg.proxy.generate-bootstrap-properties.spring.application.name.prefix: ygg-proxy-
  ygg.proxy.generate-bootstrap-properties.spring.cloud.config.uri: https://config.test.coatrack.eu

  spring.cloud.config.uri: http://coatrack-config-server
  spring.cloud.config.username: admin
  spring.cloud.config.password: password
  spring.session.store-type: jdbc
  spring.session.jdbc.initialize-schema: always
  spring.session.jdbc.schema: org/springframework/session/jdbc/schema-postgresql.sql
  spring.jpa.hibernate.ddl-auto: create-drop
  
  # ***********
  # Security
  # ***********
  security.oauth2.client.clientId: 3bf52b2c263318ee1d6f
  security.oauth2.client.clientSecret: 611835f590b73197ea3a750c0ae3008a887f6a9b
  security.oauth2.client.accessTokenUri: https://github.com/login/oauth/access_token
  security.oauth2.client.userAuthorizationUri: https://github.com/login/oauth/authorize
  security.oauth2.client.tokenName: oauth_token
  security.oauth2.client.authenticationScheme: header
  security.oauth2.client.clientAuthenticationScheme: header
  security.oauth2.client.scope.user: email
  security.oauth2.client.scope.read: user
  security.oauth2.resource.userInfoUri: https://api.github.com/user
  spring.profiles.active: test
