default: &default
  platform_url: 'http://localhost:3000'
  oauth:
    qq:
      appid: 'test'
      secret: 'test123456'
    wechat:
      appid: 'test'
      secret: 'test'
      scope: 'snsapi_login'
      base_url: 'https://api.weixin.qq.com'
    aliyun_vod:
      access_key_id: 'test'
      access_key_secret: 'test'
      base_url: 'http://vod.cn-shanghai.aliyuncs.com'
      cate_id: '-1'
      callback_url: 'callback_url'
      signature_key: 'test12345678'
    educoder:
      client_id: 'test'
      client_secret: 'test123456'
      base_url: 'https://test.a.com'
      redirect_uri: 'https://test.a.com/api/auth/educoder/callback'
    gitlink:
      client_id: 'e9ce4d5ba1698d6f7d01d8ee2959776c7a6d743ebe94da2341e288fd2fbf60aa'
      client_secret: '6ff84dd75eddd859c5bd0e7a791b58bc5ad1ba4fbb30bc9db37cb0baf9f33012'
      base_url: 'https://testforgeplus.osredm.com'
      redirect_uri: 'https://testforgeplus.osredm.com/api/auth/educoder/callback'
    openkylin:
      client_id: 'd98nktubIMZj2oh9s0gyc8Pw0IulS7OihwEjG5TgzfCpV1U1lKWKnLlXLcwa14qQ'
      client_secret: 'CfSUp3f97nBEU6xAtGKffZULM2NYTtrdCpcuSIZCxHvwLfFifD6FET5yMB0N9uFi'
      base_url: 'https://ids.openkylin.top'
      redirect_uri: 'http://111.8.36.180:8000/api/auth/openkylin/callback'
  gitea:
    access_key_id: <%=ENV.fetch("GITEA_DOMAIN", 'test') %>
    access_key_secret: <%=ENV.fetch("GITEA_DOMAIN", 'test123123') %>
    domain: <%=ENV.fetch("GITEA_DOMAIN", 'https://gitea.test.com') %>
    base_url: '/api/v1'
    admin_token: '123123'
    hat_base_url: '/api/hat'
    accelerator:
      access_key_id: ''
      access_key_secret: ''
      access_admin_uid: 1
      domain: 'https://testgit.trustie.net'
      base_url: '/api/v1'

  notice: 
    platform: ''
    write_domain: ''
    read_domain: ''
    base_url: ''
  
  trace: 
    domain: ''
    base_url: ''
    cookie_domain: '.gitlink.org.cn'
    view_domain: 'https://cjn.gitlink.org.cn'
  forum:
    domain: ''
    base_url: '/api'
  # 区块链相关配置
  blockchain:
    api_url: 'blockchain service url'
  sonarqube:
    url: ''
    secret: ''
    checkout: ''
    scanner: ''
production:
  <<: *default

development:
  <<: *default

test:
  <<: *default

