anchor.diff:      elliptics_verbosity: <%= @elliptics_verbosity %>
       elliptics_logfile: <%= @elliptics_logfile %>
       elliptics_addr_family: <%= @elliptics_addr_family %>
  -
  +<% end -%>
  +
  +<% if @storage == oss -%>
   # This flavor stores the images in Aliyun OSS
   # See:
   # https://i.aliyun.com/access_key/
  
positive.code: # All other flavors inherit the `common' config snippet
  common: &common
      issue: '"docker-registry server"'
      # Default log level is info
      loglevel: <%= @loglevel %>
      # Enable debugging (additional informations in the output of the _ping endpoint)
      debug: <%= @debug %>
      # By default, the registry acts standalone (eg: doesn't query the index)
      standalone: <%= @standalone %>
      # The default endpoint to use (if NOT standalone) is index.docker.io
      index_endpoint: <%= @index_endpoint %>
      # Storage redirect is disabled
      storage_redirect: <%= @storage_redirect %>
      # Token auth is enabled (if NOT standalone)
      disable_token_auth: <%= @disable_token_auth %>
      # No priv key
      privileged_key: <%= @privileged_key %>
      # No search backend
      search_backend: <%= @search_backend %>
      # SQLite search backend
      sqlalchemy_index_database: <%= @sqlalchemy_index_database %>
  
      # Mirroring is not enabled
      mirroring:
          source: <%= @mirror_source %>
          source_index: <%= @mirror_source_index %>
          tags_cache_ttl: <%= @mirror_tags_cache_ttl %>
  
      cache:
          host: <%= @cache_redis_host %>
          port: <%= @cache_redis_port %>
          db: <%= @cache_redis_db %>
          password: <%= @cache_redis_password %>
  
      # Enabling LRU cache for small files
      # This speeds up read/write on small files
      # when using a remote storage backend (like S3).
  
negative.code:         port: <%= @cache_lru_redis_port %>
          db: <%= @cache_lru_redis_db %>
          password: <%= @cache_lru_redis_password %>
  <% end -%>
  
  <% if @smtp_host -%>
      # Enabling these options makes the Registry send an email on each code Exception
      email_exceptions:
          smtp_host: <%= @smtp_host %>
  