-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (2 of 2) Upstream module example (#37)
* feat: Upstream module example Upstream example - derived from github.com/gabihodoroaga/nginx-upstream-module and NGINX ngx_http_upstream_keepalive_module.c Simply replaces peer functions with passthrough versions, i.e., proxies traffic through this module to originally configured upstream functions. Useful as a guide and example, but does not add load balancing algorithms. --------- Co-authored-by: Matthew Yacobucci <yacobuci@gmail.com>
- Loading branch information
1 parent
8b3a119
commit 840d789
Showing
4 changed files
with
461 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# example configuration block to test upstream.rs | ||
http { | ||
upstream backend { | ||
server localhost:15501; | ||
custom 32; | ||
} | ||
|
||
server { | ||
listen 15500; | ||
server_name _; | ||
|
||
location / { | ||
proxy_pass http://backend; | ||
} | ||
} | ||
|
||
server { | ||
listen 15501; | ||
|
||
location / { | ||
return 418; | ||
} | ||
} | ||
} |
Oops, something went wrong.