Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
65b56248
Commit
65b56248
authored
Aug 16, 2017
by
John Belamaric
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of hostnames in upstreams (#927)
Only IP:Port or file name is allowed.
parent
06644c28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
middleware/proxy/README.md
middleware/proxy/README.md
+5
-5
No files found.
middleware/proxy/README.md
View file @
65b56248
...
...
@@ -108,19 +108,19 @@ specified in the config, `proto` is the protocol used by the incoming query ("tc
Proxy all requests within example.org. to a backend system:
~~~
proxy example.org
localhost
:9005
proxy example.org
127.0.0.1
:9005
~~~
Load-balance all requests between three backends (using random policy):
~~~
proxy .
dns1.local:53 dns2.local:1053 dns3.local
proxy .
10.0.0.10:53 10.0.0.11:1053 10.0.0.12
~~~
Same as above, but round-robin style:
~~~
proxy .
dns1.local:53 dns2.local:1053 dns3.local
{
proxy .
10.0.0.10:53 10.0.0.11:1053 10.0.0.12
{
policy round_robin
}
~~~
...
...
@@ -128,7 +128,7 @@ proxy . dns1.local:53 dns2.local:1053 dns3.local {
With health checks and proxy headers to pass hostname, IP, and scheme upstream:
~~~
proxy .
dns1.local:53 dns2.local:53 dns3.local
:53 {
proxy .
10.0.0.11:53 10.0.0.11:53 10.0.0.12
:53 {
policy round_robin
health_check /health:8080
}
...
...
@@ -137,7 +137,7 @@ proxy . dns1.local:53 dns2.local:53 dns3.local:53 {
Proxy everything except requests to miek.nl or example.org
~~~
proxy .
backend
:1234 {
proxy .
10.0.0.10
:1234 {
except miek.nl example.org
}
~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment