Fix Directory Hardcodes, Documentation Improvements (#10)
* Improve the main crontab example. * Remove /opt/Docker hardcodes. * Add periods. * Improve readability. * Begin removing hardcoded path from the bin files. * Update main README to no longer enforce hardcoded path. Other improvements. * Add the load folder with a README. * Add load folder and its README. * Improve reverse proxy text files. * Switch to tabs. * Update all scripts for tabs, DOCKER_HOME, and comments. * Let users know the directory choice is optional. * Fix environment file. * Add more details for the reverse proxy load balancing. * Don't actually listen for postgres. * Fix comments on source file. * Be more explicit on the pathing.
This commit is contained in:
8
Config/ReverseProxy/config/load.conf.d/README.md
Normal file
8
Config/ReverseProxy/config/load.conf.d/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Load Balancing Files
|
||||
Allow requests coming to this server to be spread amongst multiple servers based
|
||||
on port number. It does not seem possible to spread them based on `server_name`
|
||||
or other directives like a reverse proxy. The server simply listens on the port
|
||||
then runs through the upstream list to determine the destination.
|
||||
|
||||
## Official Documentation
|
||||
http://nginx.org/en/docs/stream/ngx_stream_core_module.html
|
15
Config/ReverseProxy/config/load.conf.d/example.com
Normal file
15
Config/ReverseProxy/config/load.conf.d/example.com
Normal file
@ -0,0 +1,15 @@
|
||||
# Example of how to load balance 4 Postgres servers for example.com. Since this
|
||||
# does not act under a reverse proxy situation, code is commented so that the
|
||||
# container does not needlessly start listening on the port.
|
||||
|
||||
#upstream postgres_servers {
|
||||
# server 1.2.3.1:5432;
|
||||
# server 1.2.3.2:5432;
|
||||
# server 1.2.3.3:5432;
|
||||
# server 1.2.3.4:5432;
|
||||
#}
|
||||
#
|
||||
#server {
|
||||
# listen 5432;
|
||||
# proxy_pass postgres_servers;
|
||||
#}
|
Reference in New Issue
Block a user