apiVersion: v1
kind: ConfigMap
metadata:
  name: portus-registry-config
data:
  REGISTRY_AUTH_TOKEN_REALM: "https://10.17.3.95.nip.io:32123/v2/token"
  REGISTRY_AUTH_TOKEN_SERVICE: "registry:5000"
  REGISTRY_AUTH_TOKEN_ISSUER: "portus"
  REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: "/certificates/portus.crt"
  REGISTRY_HTTP_TLS_CERTIFICATE: "/certificates/portus.crt"
  REGISTRY_HTTP_TLS_KEY: "/certificates/portus.key"
  REGISTRY_NOTIFICATIONS_ENDPOINTS: >
    - name: nginx
      url: https://nginx/v2/webhooks/events
      timeout: 2000ms
      threshold: 5
      backoff: 1s
  config: |
    version: 0.1
    storage:
      filesystem:
        rootdirectory: /var/lib/registry
      delete:
        enabled: true
    http:
      addr: 0.0.0.0:5000
      debug:
        addr: 0.0.0.0:5001
