Bridge YAML Configuration

Configure the Bridge service using system.yaml.

The Bridge system.yaml file defines the shared, Bridge, and router settings for the Bridge service. For more information, see Using System YAMLs.

Bridge system.full-template.yaml File

Bridge YAML
 
## JFROG Bridge SYSTEM CONFIGURATION FILE
## HOW TO USE: comment-out any field and keep the correct yaml indentation by deleting only the leading '#' character.
configVersion: 1

## NOTE: JFROG_HOME is a place holder for the JFrog root directory containing the deployed product, the home directory for all JFrog products.

## NOTE: Sensitive information such as passwords and join key are encrypted on first read.
## NOTE: The provided commented key and value is the default.

## SHARED CONFIGURATIONS
## A shared section for keys across all services in this config
shared:

  ## Base URL of the JFrog Platform Deployment (JPD)
  ## This is the URL to the machine where JFrog Artifactory is deployed, or the load balancer pointing to it. It is recommended to use DNS names rather than direct IPs.
  ## Examples: "http://jfrog.acme.com or http://10.20.30.40:8082"
  #jfrogUrl:

  ## Shared security configuration
  security:
    ## Join key value for joining the cluster (takes precedence over 'joinKeyFile')
    #joinKey: "XXX"

    ## Master key value for joining the cluster (takes precedence over 'masterKeyFile')
    #masterKey: "XXX"

    ## Timeout for reading bootstrap keys (join key / master key) from the platform, in seconds
    #bootstrapKeysReadTimeoutSecs: 120

    ## Whether internal diagnostic HTTP headers are exposed in responses
    #exposeApplicationHeaders: false

  ## Shared logging configuration
  logging:
    consoleLog:
      ## If true, all services' console logs will be redirected to a common console.log
      #enabled: true

      ## The log format: jftext, json
      #format: "jftext"

    ## If true, console log appenders emit JSON-formatted lines instead of plain text
    #enableJsonConsoleLogAppenders: false

    ## Log rotation settings
    rotation:
      ## The max file size at which enforce rotation
      #maxSizeMb: 25

      ## The number of backup files to maintain
      #maxFiles: 10

      ## Whether to compress the backup file
      #compress: true

  ## Shared node settings
  node:
    ## A unique id to identify this node.
    ## Default: auto generated at startup.
    #id: "bridge1"

    ## Default: auto resolved by startup script
    #ip:

    ## Default: auto resolved by startup script
    #name: ""

  ## Run as a given user and group
  ## Note : This is only considered in linux archive installation which is installed as a service
  ## Make sure to change ownership of JFROG_HOME/bridge/app and JFROG_HOME/bridge/var directory, if this is modified after install
  #user: bridge
  #group: bridge

## Bridge template
bridge:
  ## The port the bridge service listens on
  #port: 8069

  ## The address the bridge service binds to
  #listenAddr: "localhost"

  ## Graceful shutdown wait time, in seconds
  #gracefulShutdownWaitSecs: 10

  ## Access service client settings
  accessClient:
    ## Timeout for the initial join call to Access, in milliseconds
    #joinTimeoutMillis: 360000

    ## Timeout for ping calls to Access, in milliseconds
    #pingTimeoutMillis: 240000

    ## Timeout for fetching configuration from Access, in milliseconds
    #getConfigTimeoutMillis: 10000

    ## Distributed lock settings (used for cluster-wide coordination via Access)
    distributedLock:
      ## How long a lock is considered stale before it can be reclaimed, in milliseconds
      #lockStaleDurationMillis: 30000

      ## Timeout for acquiring a distributed lock, in milliseconds
      #lockTimeoutMillis: 30000

  ## JFConnect client settings
  jfConnectClient:
    ## Interval between JFConnect fetches, in seconds
    #fetchIntervalSecs: 30

    ## Name of the service used for the central access token. Only used for JFrog ML tunnels.
    #centralAccessTokenService: "bridge"

  ## Bridge-specific logging configuration
  logging:
    ## Application log settings
    application:
      ## Whether to include the caller information (runtime frame)
      #caller: false

      ## Whether to print the log also to stdout
      #console: true

      ## Path to the application log file
      #filePath: "bridge-client-service.log"

      ## The log format: jftext, json
      #format: "jftext"

      ## The log level: error, warning, info, debug, trace
      #level: "info"

      ## Per-package log level overrides
      #packages:
      #  some/package/path:
      #    level: "debug"

      ## Log rotation settings
      rotation:
        #compress: true
        #keepLastDecompressed: 1
        #maxAgeDays: 365
        #maxFiles: 10
        #maxSizeMb: 25
        #intervalSecs: 86400

    ## Console log format for the bridge service
    consoleLog:
      #format: "jftext"

    ## Metrics log settings
    metrics:
      #console: false
      #filePath: "bridge-client-metrics.log"
      rotation:
        #compress: true
        #keepLastDecompressed: 1
        #maxAgeDays: 365
        #maxFiles: 10
        #maxSizeMb: 25
        #intervalSecs: 86400

    ## Request log settings
    request:
      #console: false
      #filePath: "bridge-client-request.log"
      rotation:
        #compress: true
        #keepLastDecompressed: 1
        #maxAgeDays: 365
        #maxFiles: 10
        #maxSizeMb: 25
        #intervalSecs: 86400

    ## Active-request tracking log settings
    activeRequest:
      ## Max number of active requests tracked for logging purposes
      #logFileNumberLimit: 10

  ## Profiling settings
  profiling:
    pprofServer:
      ## The port pprof server listens on
      #port: 6060

      ## pprof server shutdown timeout, in seconds
      #timeoutSeconds: 21600

      ## pprof server read-header timeout, in milliseconds
      #readHeaderTimeoutMillis: 5000

  ## Support bundle settings
  support:
    bundle:
      ## Timeout for support bundle generation, in seconds
      #timeoutSecs: 300

  ## Tunnel settings
  tunnel:
    client:
      ## Named tunnel bridges. Each entry configures one tunnel to a remote bridge server.
      ## This is used mainly for JFrogML-mode bridges. For "default"-type bridges, the preferred way
      ## to configure them is via the UI or the REST API rather than this file.
      bridges:
        #default:
          ## Bridge type: "default" or "jfrogml"
          #type: "default"

          ## Local side of the tunnel (this node)
          #local:
            ## Local URL the tunnel forwards to
            #url:

            ## Base URL advertised for this bridge
            #baseUrl:

            ## Regex patterns for endpoints allowed without authentication
            #anonymousEndpoints:
            #- ".*/system/(ping|readiness|liveness)"

            ## Timeout for dialing the local endpoint, in seconds
            #dialTimeoutSecs: 5

            ## PEM-encoded root CA certificate content (not a file path) used to validate the local
            ## endpoint's TLS certificate, e.g. "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
            #tlsRootCa:

          ## Remote side of the tunnel (the peer bridge server)
          #remote:
            ## Remote URL to connect to
            #url:

            ## Token used to authenticate with the remote bridge server
            #token: "XXX"

            ## Skip TLS verification for the remote connection
            #insecure: false

            ## Proxy settings used when connecting to the remote endpoint
            #proxy:
              #enabled: true
              #cacheExpirationSecs: 3600
              #key: "platform"
              #schemeOverride:

          ## Minimum number of tunnels to keep open to this bridge
          #minTunnels: 2

          ## Maximum number of tunnels to keep open to this bridge
          #maxTunnels: 10

          ## Yamux max stream window size, in bytes
          #yamuxMaxStreamWindowSize: 16777216

          ## Target tunnel usage thresholds used to scale tunnel count up/down
          #targetUsage:
            #low: 1
            #high: 5

          ## Scheduled jobs for this bridge
          #jobs:
            #tunnelCreation:
              ## Interval between tunnel-creation checks, in minutes
              #intervalMinutes: 1
            #tunnelClosing:
              ## Cron expression controlling when idle tunnels are closed
              #cronExpr: "0 0 * * *"

              ## Whether tunnels that were recently used can still be closed
              #allowCloseUsedTunnels: true

              ## Grace period before forcefully closing a tunnel, in seconds
              #gracefulShutdownPeriodSecs: 10

          ## Whether this bridge is administratively stopped
          #stopped: false

      ## Reconnect backoff settings for the tunnel client
      backoff:
        #initialIntervalMillis: 100
        #maxIntervalMillis: 1000
        #randomizationFactor: 0
        #multiplier: 1.5

      ## Tunnel-opening token settings
      token:
        ## How long before expiry a new token is pre-fetched, in hours
        #expiryBufferHours: 720

      ## Readiness-check settings used before opening tunnels
      readinessCheck:
        ## Endpoints polled to determine readiness
        #endpoints:
        #- "/access/api/v1/system/readiness"
        #- "/router/api/v1/system/readiness"
        #- "/artifactory/api/v1/system/readiness"

        ## Timeout for each readiness-check call, in seconds
        #timeoutSecs: 5

    ## Tunnel health-check settings (client-relevant values only)
    healthCheck:
      ## Interval between health checks, in milliseconds
      #intervalMillis: 10000

      ## Timeout for each health check, in milliseconds
      #timeoutMillis: 5000

  ## Metrics settings
  metrics:
    ## Whether metrics collection is enabled
    #enabled: true

    ## Metric name patterns to exclude from collection
    #exclude: []

    ## Interval between periodic metrics collection/logging, in milliseconds
    #intervalMillis: 10000

    ## Whether metrics are collected and logged periodically in the background (vs. only on endpoint call)
    #logPeriodically: true

    ## Adoption (usage) metrics settings
    adoption:
      ## Whether adoption metrics collection is enabled
      #enabled: true

      ## Directory where adoption metrics usage data is stored. Default: ${JF_PRODUCT_HOME}/var/data/bridge/usage
      #usageDataDir: ""

      ## Interval for rotating adoption metrics log files, in seconds
      #logRotationIntervalSecs: 900

  ## UI-related settings
  ui:
    storage:
      ## Interval between UI storage updates, in seconds
      #updateIntervalSecs: 30


## Router template
router:
  ## Profiling related settings
  profiling:
    ## Enable profiling endpoints
    #enabled: true

  ## Corporate proxy related settings
  proxy:
    ## Proxy url for all outgoing http requests
    #httpUrl: ""

    ## Proxy url for all outgoing https requests
    #httpsUrl: ""

    ## List of target hosts to communicate with directly, bypassing the proxy.
    ## "localhost" will always be added to this list automatically.
    #ignoredHosts:
    #- "ignore.me.com"
    #- "ignore.me2.com"

  ## Router entry points
  entrypoints:
    ## The internal port, used by local services to communicate with the router and any other service (local and external)
    #internalPort: 8046

    ## The external port, registered in the service registry, used by external services to communicate with services in this node
    #externalPort: 8082

    ## An internal port used for internal Traefik (and Router) REST API
    #traefikApiPort: 8049

    ## An internal port used for Router's gRPC API
    #grpcPort: 8047

  ## Service registry (Access) communication settings
  serviceRegistry:

    ## Service registry (Access) TLS verification skipped if enabled
    #insecure: false

    ## Service registry (Access) request timeout
    #requestTimeout: 15s

  ## Topology related settings
  topology:
    ## Local topology settings
    local:
      #requiredServiceTypes: "jfds"

      ## Settings for checking the health of local services
      healthCheck:
        ## Duration between health checks
        #interval: 5s

        ## Health check request timeout
        #requestTimeout: 5s

        ## The number of consecutive successful health checks that must occur before declaring an instance healthy
        #healthyThreshold: 2

        ## The number of consecutive failed health checks that must occur before declaring an instance unhealthy
        #unhealthyThreshold: 2

    ## External topology settings
    external:
      ## Settings for refreshing the router with external topology from the service registry
      refresh:
        ## Refresh interval
        #interval: 3s

        ## The maximum duration a service can be considered as healthy since its last heartbeat
        #maxStaleHeartbeat: 30s

  ## Support bundle aggregation settings
  supportBundle:
    ## The maximum duration support bundle aggregation is allowed before it is automatically cancelled
    #aggregationTimeout: 1h

  ## Logging settings
  logging:
    ## Router log settings
    application:
      ## The log level: error, warning, info, debug, trace
      #level: "info"

      ## The log format: jftext, json
      #format: "jftext"

      ## Whether to include the caller information (runtime frame)
      #caller: false

      ## Whether to print the log also to stdout
      #console: true

      ## Log rotation settings
      rotation:
        #compress: true
        #maxSizeMb: 25
        #maxAgeDays: 0
        #maxFiles: 10

    ## Traefik log settings
    traefik:
      ## The log level: error, warning, info, debug, trace
      #level: "info"

      ## The log format: jftext, json
      #format: "jftext"

      ## Whether to include the caller information (runtime frame)
      #caller: false

      ## Whether to print the log also to stdout
      #console: true

      ## Log rotation settings
      rotation:
        #compress: true
        #maxSizeMb: 25
        #maxAgeDays: 0
        #maxFiles: 10

    ## Request log settings
    request:
      ## If true, request log will contain additional information
      ## This may result in a slight performance overhead
      #verbose: false

      ## Log rotation settings
      rotation:
        #compress: true
        #maxSizeMb: 100
        #maxAgeDays: 0
        #maxFiles: 10

  ## Add any custom environment variables to be passed to this service
  ## Environment variables starting with JF_ are not allowed, will be ignored with a warning if it is added
  env:
    #EXAMPLE_VAR: example-value
    #LD_LIBRARY_PATH: /usr/lib64

  ## Retry configuration
  retry:
  ## Enable retry sending request in case of network error
  #enabled: true

Frequently Asked Questions

This section provides answers to frequently asked questions.

plusFAQs
Q: Do I also define the Bridge in the system.yaml?

A: Don’t define Bridges in .yaml files. Bridges you define directly in .yaml files appear in the Bridges table, but can't be managed using the Platform interface or the Bridge APIs. Use the JFrog Platform user interface or the Bridge Client API to define Bridges.

Q: Can I change the default router ports?

A: When you must change the router ports, follow the example shown in Install Bridge Client on the same virtual machine as Artifactory.

Related Topics


Did this page help you?