AdaptiveConsulting / nexus-casc-plugin

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

Add handling of repository routing rules #45

Closed larhauga closed 4 months ago

larhauga commented 8 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 4 months 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