summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-04-10 12:55:41 +0200
committerValery Piashchynski <[email protected]>2022-04-10 12:55:41 +0200
commit203d2fa9adf83aeab8271d8c6113c15f87d9aeca (patch)
tree297e95b4a8ad5e2a8666c8c2760dc3da63f08140
parenta75413573099387bd03f91caefb0072f3fb9504d (diff)
trusted_proxies: add proxy_ip_parser middleware
-rw-r--r--go.mod13
-rw-r--r--go.sum75
-rw-r--r--internal/container/plugins.go23
3 files changed, 33 insertions, 78 deletions
diff --git a/go.mod b/go.mod
index d37475a4..f6a227bb 100644
--- a/go.mod
+++ b/go.mod
@@ -34,6 +34,7 @@ require (
github.com/roadrunner-server/nats/v2 v2.12.0
github.com/roadrunner-server/new_relic/v2 v2.13.0
github.com/roadrunner-server/prometheus/v2 v2.12.0
+ github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0
github.com/roadrunner-server/redis/v2 v2.13.0
github.com/roadrunner-server/reload/v2 v2.11.0
github.com/roadrunner-server/resetter/v2 v2.11.0
@@ -73,7 +74,7 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/bradfitz/gomemcache v0.0.0-20220106215444-fb4bf637b56d // indirect
github.com/caddyserver/certmagic v0.16.0 // indirect
- github.com/cenkalti/backoff/v4 v4.1.2 // indirect
+ github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
@@ -109,7 +110,7 @@ require (
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/nats-io/jwt/v2 v2.2.1-0.20220113022732-58e87895b296 // indirect
- github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d // indirect
+ github.com/nats-io/nats.go v1.14.0 // indirect
github.com/nats-io/nkeys v0.3.0 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/newrelic/go-agent/v3 v3.15.2 // indirect
@@ -150,16 +151,16 @@ require (
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.21.0 // indirect
- golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 // indirect
+ golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 //indirect
- golang.org/x/net v0.0.0-20220403103023-749bd193bc2b // indirect
+ golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
- golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 // indirect
+ golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
- google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf // indirect
+ google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
google.golang.org/grpc v1.45.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
diff --git a/go.sum b/go.sum
index dbb82ddc..0aa62090 100644
--- a/go.sum
+++ b/go.sum
@@ -92,10 +92,9 @@ github.com/buger/goterm v1.0.4/go.mod h1:HiFWV3xnkolgrBV3mY8m0X0Pumt4zg4QhbdOzQt
github.com/cactus/go-statsd-client/statsd v0.0.0-20200423205355-cb0885a1018c/go.mod h1:l/bIBLeOl9eX+wxJAzxS4TveKRtAqlyDpHjhkfO0MEI=
github.com/caddyserver/certmagic v0.16.0 h1:nM6Fm+OSnTpx/uRWmN++I2fYq006uhi6m6m3rD1Jjtg=
github.com/caddyserver/certmagic v0.16.0/go.mod h1:jKQ5n+ViHAr6DbPwEGLTSM2vDwTO6EvCKBblBRUvvuQ=
-github.com/cenkalti/backoff/v4 v4.1.2 h1:6Yo7N8UP2K6LWZnW94DLVSSrbobcWdVzAYOisuDPIFo=
-github.com/cenkalti/backoff/v4 v4.1.2/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw=
+github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4=
+github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
@@ -315,8 +314,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW
github.com/nats-io/jwt/v2 v2.2.1-0.20220113022732-58e87895b296 h1:vU9tpM3apjYlLLeY23zRWJ9Zktr5jp+mloR942LEOpY=
github.com/nats-io/jwt/v2 v2.2.1-0.20220113022732-58e87895b296/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k=
github.com/nats-io/nats-server/v2 v2.7.4 h1:c+BZJ3rGzUKCBIM4IXO8uNT2u1vajGbD1kPA6wqCEaM=
-github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d h1:zJf4l8Kp67RIZhoVeniSLZs69SHNgjLHz0aNsqPPlx8=
-github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
+github.com/nats-io/nats.go v1.14.0 h1:/QLCss4vQ6wvDpbqXucsVRDi13tFIR6kTdau+nXzKJw=
+github.com/nats-io/nats.go v1.14.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
@@ -369,42 +368,28 @@ github.com/rabbitmq/amqp091-go v1.3.4 h1:tXuIslN1nhDqs2t6Jrz3BAoqvt4qIZzxvdbdcxW
github.com/rabbitmq/amqp091-go v1.3.4/go.mod h1:ogQDLSOACsLPsIq0NpbtiifNZi2YOz0VTJ0kHRghqbM=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
-github.com/roadrunner-server/amqp/v2 v2.11.1 h1:YEjUGJrzSNKAnN6fFZNOVHZtySr1MiQstuq3BPUG03I=
-github.com/roadrunner-server/amqp/v2 v2.11.1/go.mod h1:dx/Afo+ATWwxY0U//7vYtJBRWBtydbmqizgH2x66zL0=
github.com/roadrunner-server/amqp/v2 v2.12.0 h1:8BbH8wbeSgxk10si5K4prUkCw4jsLEBOEs1Z91IiLok=
github.com/roadrunner-server/amqp/v2 v2.12.0/go.mod h1:EKTSaN+tKZuWeXfefETz7sD7rheiMx0gdXG0ylRSJWs=
github.com/roadrunner-server/api/v2 v2.14.0 h1:U7CrMXv5h8qlO9vvqdvPDK0g+zMLwcERUAPcoLy6tYs=
github.com/roadrunner-server/api/v2 v2.14.0/go.mod h1:COjb3T7DYHydaKIfino/N8gVa8op1jGAXFF+qKHMnk0=
-github.com/roadrunner-server/beanstalk/v2 v2.11.0 h1:SajbQuDccuv0/vsYh5efqx/8yiygvz3n6ZfpvQcCu+E=
-github.com/roadrunner-server/beanstalk/v2 v2.11.0/go.mod h1:bEoduavbkU7Wn/mm6DpzJfRlLBd03buDRd7CX5QEXXI=
github.com/roadrunner-server/beanstalk/v2 v2.12.0 h1:KfQmcO5mFm1vrHhciTwJ41NjtLw2LCduhg4YHN21qaw=
github.com/roadrunner-server/beanstalk/v2 v2.12.0/go.mod h1:WHU+k7S/kivIIfdUTXBWIEARctrLw8G257VvCcvaWnU=
-github.com/roadrunner-server/boltdb/v2 v2.11.1 h1:yjA3EUGRSNFGaANKL+BpyZVLt5ZJHdPk9bySEDmppBs=
-github.com/roadrunner-server/boltdb/v2 v2.11.1/go.mod h1:BOLrNTEliochVTujFVgrLs3RUlXzEgSZik4up7LLqzA=
github.com/roadrunner-server/boltdb/v2 v2.12.0 h1:dXcnbWdQp4F8JxKXiRzH2yaXkVrgZZn5j6ofRaZ5lLw=
github.com/roadrunner-server/boltdb/v2 v2.12.0/go.mod h1:zJ+Hx2U5/AUxkhBoomFh73EC+AAQXUPXrHaa8zhwiHk=
github.com/roadrunner-server/broadcast/v2 v2.11.0 h1:oUMAvAX+k+y5HESGYcc/rkJblWcEor2KXuXqf+AVJOs=
github.com/roadrunner-server/broadcast/v2 v2.11.0/go.mod h1:YW/91Lsmf/DZ/OhxJmorNhdDQBNPU+C6hXPRXb2wuP8=
-github.com/roadrunner-server/cache/v2 v2.11.1 h1:eSk/oO7WCZLXIXeZtRariMYfIoqpuY+9LHrmIOAFmhY=
-github.com/roadrunner-server/cache/v2 v2.11.1/go.mod h1:uQxhqa2sk5ugcPoACjCdDnJLZzmnEUTWm1EItVnk1bw=
github.com/roadrunner-server/cache/v2 v2.12.0 h1:RajIqz83zawTCu1LdJA8DxphhTjVDNFtZcTsUqlaOZI=
github.com/roadrunner-server/cache/v2 v2.12.0/go.mod h1:PBO1Rj94caHcOCh6G+WSvA7CTaydGyfqiOZHUoshV/g=
-github.com/roadrunner-server/config/v2 v2.11.1 h1:H/ULvnh+kSqlLgQlGQr9qhouohXm/7379lF5+Kw1+fo=
-github.com/roadrunner-server/config/v2 v2.11.1/go.mod h1:YcFXOimIn1IndYnGNqqzsL7uWDozX/TiHJBHTeCzrDo=
github.com/roadrunner-server/config/v2 v2.13.0 h1:vmnlTaufV6v16iENIRxkyJsrlg/g2YJMWK93i6h8sjY=
github.com/roadrunner-server/config/v2 v2.13.0/go.mod h1:72CUxX5w/2sto4GvCT8OyCIJuBvRSSzTY/L0rXiWri8=
github.com/roadrunner-server/endure v1.2.2 h1:MuNT8jjg75OczvMdj1h8KUBWKaQbpUrN2ymkTOA+QpQ=
github.com/roadrunner-server/endure v1.2.2/go.mod h1:MzEmu0galbhgNGMeVcb5u7PqHz2uvpeyFzKlC82O25E=
github.com/roadrunner-server/errors v1.1.2 h1:+LPw9Akgg+8LAGM4wASMWLAoBIbyP+mhNfR+FBS2Slw=
github.com/roadrunner-server/errors v1.1.2/go.mod h1:jVSh32nFtRMzKItYUM9W2CTLLpXAM8HseL2lUENPYtU=
-github.com/roadrunner-server/fileserver/v2 v2.11.1 h1:P6KNQn647pZJ4WkSwihHXQUpQLS+xr2/uPon+UPF0Fk=
-github.com/roadrunner-server/fileserver/v2 v2.11.1/go.mod h1:WXml+4IR77E529QdKOvqvwhjc1rNUxAnBt4Zk4wFHFw=
github.com/roadrunner-server/fileserver/v2 v2.12.0 h1:YTaE1/KFk5h5u8GL5YAlc00wXL1YAOv+FvTLJ27/ae4=
github.com/roadrunner-server/fileserver/v2 v2.12.0/go.mod h1:h4ov3lH40g4nO1VdHe0L1Drf4OM0g0YzrBX7MgnWmgI=
github.com/roadrunner-server/goridge/v3 v3.4.0 h1:6sIm8Dk+ykDzDkOB27vStAdriYuEymi8OSiro7y4Wbc=
github.com/roadrunner-server/goridge/v3 v3.4.0/go.mod h1:i7Y1z7dr48E6KZ+bEBS7lBRh4t9eWSUCsEOivEPpS5s=
-github.com/roadrunner-server/grpc/v2 v2.12.1 h1:hyq+6Nw+3kiNHFs0Ly4naMcayEl4AO0UNGSeHWCTOHs=
-github.com/roadrunner-server/grpc/v2 v2.12.1/go.mod h1:VZ7fnUGbaAQqAe4BkmxgC5+UZsJuQRNR1HlpGKc3lT0=
github.com/roadrunner-server/grpc/v2 v2.13.0 h1:KNSk2yJth+HD3VF3dmmcjQD65aDVX3EdsTbUi61Fk7E=
github.com/roadrunner-server/grpc/v2 v2.13.0/go.mod h1:90GtRUwTprsDXVqPo6mqImdZgc+DkKCGSFNwvS3y1e8=
github.com/roadrunner-server/gzip/v2 v2.10.0 h1:/2dpoNU5SJBsrOBIk5dBHaIEk57NQ0X97zdbbFS5xOE=
@@ -419,76 +404,48 @@ github.com/roadrunner-server/jobs/v2 v2.12.0 h1:taHiCQ/CV7vd5xLl9pPwKLsvMAV5EBJ3
github.com/roadrunner-server/jobs/v2 v2.12.0/go.mod h1:pYgLFAVarWG5sp6RwhngQXaCdrTZOPKXFrvhDiP4Gd4=
github.com/roadrunner-server/kv/v2 v2.11.0 h1:Z3Et0x19gJjnDF01uhYnmTvibZwHvovJF7FX3TvQoOU=
github.com/roadrunner-server/kv/v2 v2.11.0/go.mod h1:yh3F2Ilmp2/gjmyJIXqcIKu0JtAIS5N+rfVeozQEHsA=
-github.com/roadrunner-server/logger/v2 v2.11.1 h1:q/2PDSeK5K4n6PX69UbnNnPJ+qR2vnJT3MtS2iZU0fU=
-github.com/roadrunner-server/logger/v2 v2.11.1/go.mod h1:K8BD40829A08CwGdh1Umbwt1HCaWdddtvj6uyn2rkw8=
github.com/roadrunner-server/logger/v2 v2.12.0 h1:xle92TGOFgvCkJjEYtZRTvsGTfeGw8MDmOVubR4Od+M=
github.com/roadrunner-server/logger/v2 v2.12.0/go.mod h1:VPpvz+cWINal62bdhkKwDsCeJXbwQxeZ0vBxUf4rUhE=
github.com/roadrunner-server/memcached/v2 v2.11.0 h1:JsW61GNc9kdUNmvgz8RHPAXwNBGLDMH3cSf7Agcj/BM=
github.com/roadrunner-server/memcached/v2 v2.11.0/go.mod h1:+R8oHmg6kNy9lOMMXxWm6rQlSmz0VlxGVRJhgRDUTTU=
-github.com/roadrunner-server/memory/v2 v2.11.0 h1:IyAFDgIR8bT49JRTRZYBJ8t2Cy+7nPp3k/xyPDduWRk=
-github.com/roadrunner-server/memory/v2 v2.11.0/go.mod h1:LpeLGwShsRfyaTGWUSswY1aqIw/aqd3cAASt1Bvz+ok=
github.com/roadrunner-server/memory/v2 v2.12.0 h1:H9PQvpE+mWMtPQoDwhXriCaDJbIzmTY1S9iQEDgfABg=
github.com/roadrunner-server/memory/v2 v2.12.0/go.mod h1:/xmRYWZC1QUdAJH4FXt9cQDReyeiVXyavBEHgbvlnzU=
-github.com/roadrunner-server/metrics/v2 v2.11.1 h1:SNM8PtqDp26ZhIAw/ALfzeOrGLRoXdBsFb3NAhg1Zm8=
-github.com/roadrunner-server/metrics/v2 v2.11.1/go.mod h1:KsKAFESvt24RIHaUydpVePBxQrDkehugDHvuInuFmdc=
github.com/roadrunner-server/metrics/v2 v2.12.0 h1:dM8G362MaOWasz7fJoilFDujqtWXD0b4QpzAcWIiFVw=
github.com/roadrunner-server/metrics/v2 v2.12.0/go.mod h1:PYowks398C4HI1C6hyRuwzlJZG2kT/7GZLXblfQrgQw=
-github.com/roadrunner-server/nats/v2 v2.11.0 h1:qN/40K6bzx1pN4gSO5F5zOY7OGSh/afaa+mkPJujTWE=
-github.com/roadrunner-server/nats/v2 v2.11.0/go.mod h1:O7BDxt28e3WrMenT7Q6YTE0pedP9htzNm/GsajgYxKM=
github.com/roadrunner-server/nats/v2 v2.12.0 h1:3EtERl2Aj6lQ3B/PBELIP01gWYbYghCKvlxlyc5NElY=
github.com/roadrunner-server/nats/v2 v2.12.0/go.mod h1:NEAKykWuKwwvevMBq5O4BZPBl2icKsbR5Hq2l7plhHo=
-github.com/roadrunner-server/new_relic/v2 v2.12.1 h1:sutJWLc/5uj7ICdVa0Jeuga1gTl/9LFppePi029WKA0=
-github.com/roadrunner-server/new_relic/v2 v2.12.1/go.mod h1:zPKRZzour76sStkS51KHXpHInsV0EXphFaLaymMmHk0=
github.com/roadrunner-server/new_relic/v2 v2.13.0 h1:zb0ICNY5Q3vUubYwGu6rbeKylgEdLdp5PwVRvnYS0og=
github.com/roadrunner-server/new_relic/v2 v2.13.0/go.mod h1:4T9V0uahXkkxp2wCpsTp9DepFz8ZAgnoOixWUaeKgJ0=
-github.com/roadrunner-server/prometheus/v2 v2.11.1 h1:ChR6yQ+JGvgZBmQ99dhzGznPeSvwZxX5wPtzfhSa664=
-github.com/roadrunner-server/prometheus/v2 v2.11.1/go.mod h1:z/1FfBplyoepI7AJZAzB0jhaQWCXE/tEXs7JT3AaO/Y=
github.com/roadrunner-server/prometheus/v2 v2.12.0 h1:SEYkINVh4BucKU1LfqCwKKLcsy6Hx4ldDeARVDJdluw=
github.com/roadrunner-server/prometheus/v2 v2.12.0/go.mod h1:HPBQY3loGj3ZKFthgMRyIGoxr1ZAUundpZyC4YM9Prw=
-github.com/roadrunner-server/redis/v2 v2.12.0 h1:EfG8mvRSo4Gz230L4ta5aWmGFpOUBuxIGFWBI5VaxUY=
-github.com/roadrunner-server/redis/v2 v2.12.0/go.mod h1:Fkl12l+VztYYi0mobK/ghQkuxL7269wkjOEPS3RZKXc=
+github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0 h1:DA2fItCrwzNBXN7zl2dB+pQMvXoSM9raH1Q8nELkhuI=
+github.com/roadrunner-server/proxy_ip_parser/v2 v2.4.0/go.mod h1:mZHMsfUIkNXQRN8X98POxa/qYB6Zrb4HZmBTAWdxusg=
github.com/roadrunner-server/redis/v2 v2.13.0 h1:GS3HPmT5T8Wc51qS2olZpWjA5pWCbp/sFtAc5C/E9NQ=
github.com/roadrunner-server/redis/v2 v2.13.0/go.mod h1:kIpyeLFs7GdkZpsfbloma+e5UZKDeMwtjsaVQH87sR0=
github.com/roadrunner-server/reload/v2 v2.11.0 h1:6OEkjbZrgwjs+xvDX7BjyGP9LuggzWypOehC2cnLu6o=
github.com/roadrunner-server/reload/v2 v2.11.0/go.mod h1:Baqn+56b5Je51vMwLN6VFneYL2dYZykVoOmrA2xE4j8=
github.com/roadrunner-server/resetter/v2 v2.11.0 h1:EQGv7wHVOe/BtBzYOUlHdcmOY1XyTk6+5Tpzx56lEOw=
github.com/roadrunner-server/resetter/v2 v2.11.0/go.mod h1:9G3EZA1pSij6NO+PeCqbLunE/ke6kSybR5P59Iv6dyc=
-github.com/roadrunner-server/rpc/v2 v2.11.0 h1:chnnNivD+zceu0y5+LxZpQWOD6JKYdI595neboKK3To=
-github.com/roadrunner-server/rpc/v2 v2.11.0/go.mod h1:KZJbTdB3LK5WIGzJ0Bq0QkG1RK8wfSioatheoneCdFQ=
github.com/roadrunner-server/rpc/v2 v2.12.0 h1:LL989LVJ2TEZtd6ZIahPGCDYuulB2L8rqaRsnJOl774=
github.com/roadrunner-server/rpc/v2 v2.12.0/go.mod h1:ClDDCqh/XFNP76tUbTksbv2d+2ww6kP5HA4e5c71D5E=
github.com/roadrunner-server/sdk/v2 v2.13.0 h1:390lH0eqP1/PEP/GZk27A9YH43Utez/qqtaBviTCOAU=
github.com/roadrunner-server/sdk/v2 v2.13.0/go.mod h1:katxDBnU7298CaluLBRgHEJOSobkCuzcXH1PcrcMZY4=
github.com/roadrunner-server/send/v2 v2.10.0 h1:FRNo8aMzrE4Zu0IwdUPsp1Rh6CuTULBRUHvbbtfADME=
github.com/roadrunner-server/send/v2 v2.10.0/go.mod h1:48Pe+O+4vmirHBNGfd1/l7SZoPQ2EonSLBhOi9Nathw=
-github.com/roadrunner-server/server/v2 v2.12.1 h1:7ZWiq+QynvZgYJ7i09JnIIBYPgvb8XB9/ykwYcutMag=
-github.com/roadrunner-server/server/v2 v2.12.1/go.mod h1:+1g5I9jRH1rKed7gWdzl0n17yk+xgv2pUkodL5A/MkA=
github.com/roadrunner-server/server/v2 v2.13.0 h1:toczk1yyBIGfo1Q4JIUsGSjwh8b9B+bqXQmS7TBAVmw=
github.com/roadrunner-server/server/v2 v2.13.0/go.mod h1:sjsC5jfAQw4IHaDjclGSvMGjcfi7+GFNPhHtZ4Y1TZ0=
-github.com/roadrunner-server/service/v2 v2.11.1 h1:P/5tmtZjD67d48xMN/oXnNEK2zvA7zHLUaBsDpywqjw=
-github.com/roadrunner-server/service/v2 v2.11.1/go.mod h1:j7cEa/w/wAA8/qQdLD4nybixyr7Cdro0he1DBWmfAas=
github.com/roadrunner-server/service/v2 v2.12.0 h1:e1j2dhmVvnvIU6A8h2PgMw4FAh9ISc5YQS0C5e8Vl7E=
github.com/roadrunner-server/service/v2 v2.12.0/go.mod h1:rcGrywfjFRpNR0NBBgCFjlvOcheAjP1LlJ0SnSB8Qnc=
-github.com/roadrunner-server/sqs/v2 v2.12.2 h1:J3Qcqc96GTCfzbuM+qVinyVBN5faoZZauvbs0cTrPV8=
-github.com/roadrunner-server/sqs/v2 v2.12.2/go.mod h1:5sM0SZ8mH557zePK2PrlU5bbKRTf0o6/raO8kpNQK0w=
github.com/roadrunner-server/sqs/v2 v2.13.0 h1:pEYfrHvb6/iN80CCRYvgWNacERxkElmsqnNZIN/kbxM=
github.com/roadrunner-server/sqs/v2 v2.13.0/go.mod h1:JFi+Qr/lqreWdiE5EQJJt3IwMe7gJbmpc3HLilJ1XO8=
-github.com/roadrunner-server/static/v2 v2.11.0 h1:XmyoyPrkTeEoQYSJfFkWRiRiq5SSZo2EDSS0C3hTDc4=
-github.com/roadrunner-server/static/v2 v2.11.0/go.mod h1:/0WKU8uxbIn+mEsR+R6pDcciW7+WYrtHD5+c5plH4hE=
github.com/roadrunner-server/static/v2 v2.12.0 h1:ZdSqBmwSaZi636hirwqEd2EUqzJla5AUrDLV41r0/Hc=
github.com/roadrunner-server/static/v2 v2.12.0/go.mod h1:6aQwnWj6YTqFjXegUAOw1VayUQcdlZJq6qqKtrHIyqY=
-github.com/roadrunner-server/status/v2 v2.11.1 h1:eCNx7jrRQPDGjvwGPBlFuLxintpYM07zwE0Ii+vZOPA=
-github.com/roadrunner-server/status/v2 v2.11.1/go.mod h1:yODA2Ts8cAf7bNTTlXovDrmv23LHcKhyMqNulRQtzTM=
github.com/roadrunner-server/status/v2 v2.11.2 h1:j/LGss1WtWEjpsL6SBCp6CTsruwRwFb/Yi+PJHTEhAs=
github.com/roadrunner-server/status/v2 v2.11.2/go.mod h1:pt6bFApwG4MSUHgDfHhbBSTy3vmRPXgN/HxWE+wanxQ=
-github.com/roadrunner-server/tcp/v2 v2.11.1 h1:2m7HnXve5s4ujre5aINtpswo9V1Bw6Y62E3Imi8S+2Q=
-github.com/roadrunner-server/tcp/v2 v2.11.1/go.mod h1:j7Fh7I5XxTKIfc2pK0w2d9y1Irkq0UsT8e8JvMLQkUg=
github.com/roadrunner-server/tcp/v2 v2.12.0 h1:/RFnO5MK/BA+sC0dx10VVBPAepEgd/A3kTH05w1/neU=
github.com/roadrunner-server/tcp/v2 v2.12.0/go.mod h1:WBljqP28JfV1Am2PH5K+IwTKXYirXnA2utj2mg1geAA=
github.com/roadrunner-server/tcplisten v1.1.2 h1:GBjKlSEbA67UB2y83rFWsQKqMQGyalhTN9Q9HCIMBC0=
github.com/roadrunner-server/tcplisten v1.1.2/go.mod h1:wN2/X46Vo60sC9L5Bf/eC8kL+X3//7KIFmANEXZaLsg=
-github.com/roadrunner-server/websockets/v2 v2.11.2 h1:L0HNoFk5VKvWNP58KMlkUwL5Hp0HTJZYHVvohFfm7TA=
-github.com/roadrunner-server/websockets/v2 v2.11.2/go.mod h1:djsUjk5KxTy23Gq2SzlUC2CkU+k91502LuZ549f6oGk=
github.com/roadrunner-server/websockets/v2 v2.12.0 h1:vl2drEQDTiAfU7ts2bZa/Uf6JoJiiNRNbMgZQy9N5DA=
github.com/roadrunner-server/websockets/v2 v2.12.0/go.mod h1:PgjpMNSvKdk1DYX1Wi8TfFEnzIt2pFVBvPOphy78Bvs=
github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ=
@@ -528,8 +485,6 @@ github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMT
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
-github.com/temporalio/roadrunner-temporal v1.3.4 h1:yH/svSrOkbOU4vod9kuJlRVtcwxvDGDQC1F2hvC43po=
-github.com/temporalio/roadrunner-temporal v1.3.4/go.mod h1:Wr/UPwf9jzrGT4Sha6wOeN0U73czRiSEWvXNiwrC5Tc=
github.com/temporalio/roadrunner-temporal v1.3.5 h1:AeWwHOXL3Nb6NdeRInydKeUCtAO2aIpJN61NeVmOu24=
github.com/temporalio/roadrunner-temporal v1.3.5/go.mod h1:7/jELtbYmrGQBBT91y02YcikV4N6pWMVWjlZL/eyFrM=
github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw=
@@ -605,8 +560,8 @@ golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 h1:tkVvjkPTB7pnW3jnid7kNyAMPVWllTNOf/qKDze4p9o=
-golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
+golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 h1:iU7T1X1J6yxDr0rda54sWGkHgOp5XJrqm79gcNlC2VM=
+golang.org/x/crypto v0.0.0-20220408190544-5352b0902921/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -684,8 +639,8 @@ golang.org/x/net v0.0.0-20210913180222-943fd674d43e/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220403103023-749bd193bc2b h1:vI32FkLJNAWtGD4BwkThwEy6XS7ZLLMHkSkYfF8M0W0=
-golang.org/x/net v0.0.0-20220403103023-749bd193bc2b/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
+golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 h1:EN5+DfgmRMvRUrMGERW2gQl3Vc+Z7ZMnI/xdEpPSf0c=
+golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -769,10 +724,8 @@ golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220222200937-f2425489ef4c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220406155245-289d7a0edf71 h1:PRD0hj6tTuUnCFD08vkvjkYFbQg/9lV8KIxe1y4/cvU=
-golang.org/x/sys v0.0.0-20220406155245-289d7a0edf71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 h1:QyVthZKMsyaQwBTJE04jdNN0Pp5Fn9Qga0mrgxyERQM=
-golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f h1:8w7RhxzTVgUzw/AH/9mUV5q0vMgy40SQRursCcfmkCw=
+golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -919,8 +872,8 @@ google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6D
google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
-google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf h1:JTjwKJX9erVpsw17w+OIPP7iAgEkN/r8urhWSunEDTs=
-google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
+google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac h1:qSNTkEN+L2mvWcLgJOR+8bdHX9rN/IdU3A1Ghpfb1Rg=
+google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
diff --git a/internal/container/plugins.go b/internal/container/plugins.go
index 47dad92a..2b3cba49 100644
--- a/internal/container/plugins.go
+++ b/internal/container/plugins.go
@@ -1,32 +1,32 @@
package container
import (
- "github.com/roadrunner-server/cache/v2"
- "github.com/roadrunner-server/informer/v2"
- "github.com/roadrunner-server/logger/v2"
- "github.com/roadrunner-server/metrics/v2"
- "github.com/roadrunner-server/reload/v2"
- "github.com/roadrunner-server/resetter/v2"
- rpcPlugin "github.com/roadrunner-server/rpc/v2"
- "github.com/roadrunner-server/send/v2"
- "github.com/roadrunner-server/server/v2"
- "github.com/roadrunner-server/service/v2"
-
"github.com/roadrunner-server/amqp/v2"
"github.com/roadrunner-server/beanstalk/v2"
"github.com/roadrunner-server/boltdb/v2"
"github.com/roadrunner-server/broadcast/v2"
+ "github.com/roadrunner-server/cache/v2"
"github.com/roadrunner-server/fileserver/v2"
grpcPlugin "github.com/roadrunner-server/grpc/v2"
"github.com/roadrunner-server/gzip/v2"
"github.com/roadrunner-server/headers/v2"
httpPlugin "github.com/roadrunner-server/http/v2"
+ "github.com/roadrunner-server/informer/v2"
"github.com/roadrunner-server/jobs/v2"
+ "github.com/roadrunner-server/logger/v2"
"github.com/roadrunner-server/memory/v2"
+ "github.com/roadrunner-server/metrics/v2"
"github.com/roadrunner-server/nats/v2"
newrelic "github.com/roadrunner-server/new_relic/v2"
"github.com/roadrunner-server/prometheus/v2"
+ proxyIP "github.com/roadrunner-server/proxy_ip_parser/v2"
"github.com/roadrunner-server/redis/v2"
+ "github.com/roadrunner-server/reload/v2"
+ "github.com/roadrunner-server/resetter/v2"
+ rpcPlugin "github.com/roadrunner-server/rpc/v2"
+ "github.com/roadrunner-server/send/v2"
+ "github.com/roadrunner-server/server/v2"
+ "github.com/roadrunner-server/service/v2"
"github.com/roadrunner-server/sqs/v2"
"github.com/roadrunner-server/static/v2"
"github.com/roadrunner-server/status/v2"
@@ -78,6 +78,7 @@ func Plugins() []interface{} { //nolint:funlen
&prometheus.Plugin{},
&cache.Plugin{},
&send.Plugin{},
+ &proxyIP.Plugin{},
&fileserver.Plugin{},
// ===================