Skip to content

集成部署

跟DFC集成部署

  1. 安装好DFC和DataSpring两套系统

  2. 配置DFC到DataSpring的入口地址

    • 配置文件路径 /data01/datafocus/k8s/yaml/focus_web/conf/nginx-configmap.yml

    • 修改内容

      yaml
      kind: ConfigMap
      apiVersion: v1
      metadata:
        name: df-web-settings-cm
        namespace: datafocus
      data:
        settings.js :|-
          const settings = {
               ETL_URL: "https://dataspring.your-domain.com"
               # other configs...
          }
          windows.settings = settings;
  3. 在DFC系统中申请DataSpring的接口鉴权密钥

  4. DataSpring修改配置

    • 配置文件路径 /data01/datafocus/k8s/yaml/etlserver/conf/etlserver-configmap.yml

    • 修改内容

      yaml
      # 认证类型 DATA_FOCUS_AUTH、LOCAL_AUTH、CONSOLE_AUTH
      auth.type=DATA_FOCUS_AUTH
        
      # sso.server.ur是DFC访问地址
      sso.server.url=https://datafocus.your-domain.com
      sso.access.token.uri=/datafocus/api/v1.0/access_token
      sso.open.id.uri=/datafocus/api/v1.0/openid
      sso.user.info.uri=/datafocus/api/v1.0/userinfo
      sso.auth.url=/datafocus/api/v1.0/authorize
      sso.refresh.token.uri=/datafocus/api/v1.0/refresh_accesstoken
      
      # 以下配置DFC认证权限。在DFC系统中配置
      etl.app.id=36ecc7f0a5a24672a9cd653944aa7087
      etl.app.name=etl_login
      etl.app.key=4ace197f6741d4c897cb7d991425c82227641c012f3253c449a6801e6af21cc5

访问路径

登录DFC界面