AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

Add handling of repository routing rules #45

Closed larhauga closed 1 month ago

larhauga commented 6 months ago

This pull requests adds support for adding routing rules.

Example configuration:

repository:
  routingRules:
    - name: go-internal
      description: internal golang packages with authentication
      mode: ALLOW
      matchers:
        - ".*/github.com/<private-organization>/.*"
...
    - name: athens
      recipeName: go-proxy
      online: true
      routingRuleName: go-internal
      attributes:
        proxy:
          remoteUrl: http://athens.athens.svc.cluster.local:8080
          contentMaxAge: 10080
          metadataMaxAge: 1440
...
larhauga commented 1 month ago

closing this PR since there is no traction here. This code is included in my fork here https://github.com/larhauga/nexus-casc-plugin