Skip to content

Commit

Permalink
Override basePkg (#2)
Browse files Browse the repository at this point in the history
* Override basePkg

* Fix doc comment
  • Loading branch information
applejag authored Jun 10, 2024
1 parent 70b1893 commit 870c614
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ linters-settings:
allow:
- $gostd
- "github.com/RiskIdent/traefik-remoteaddr-plugin"
stylecheck:
checks:
- all
# Remove some checks:
- -ST1003 # should not use underscores in package names

linters:
enable-all: true
Expand Down
1 change: 1 addition & 0 deletions .traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: middleware
iconPath: .assets/icon.png

import: github.com/RiskIdent/traefik-remoteaddr-plugin
basePkg: plugin

summary: "Add request header for the client port, to make X-Forwarded-Port act like in nginx"

Expand Down
9 changes: 2 additions & 7 deletions plugin.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Package traefik_remoteaddr_plugin contains the Traefik plugin for adding headers based on the
// Package plugin contains the Traefik plugin for adding headers based on the
// [net/http.Request.RemoteAddr] field.
//
// The naming of this package may seem odd and unconventional with its use
// of underscores. But Traefik requires the package name to be the same
// as the repository name while loading the plugin
// (but with dashes converted to underscores)
package traefik_remoteaddr_plugin
package plugin

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion plugin_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package traefik_remoteaddr_plugin_test
package plugin_test

import (
"context"
Expand Down

0 comments on commit 870c614

Please sign in to comment.