Changes: - fix README.md old json format usage - rename "redirect" option to "proxy_pass" - move docker-compose.yml and nginx.conf.j2 to examples and add to .gitignore - fix situation when one domain from domains.txt and servers.yaml appeared twice in nginx.conf
25 lines
719 B
Plaintext
25 lines
719 B
Plaintext
resolver: 127.0.0.1
|
|
acme_challenge_location: /etc/nginx/acme/
|
|
|
|
|
|
servers:
|
|
your.domain.to_redirect:
|
|
proxy_pass: "http://redirection.address"
|
|
your_other.doma.in:
|
|
proxy_pass: "http://redirection-other.address"
|
|
server_options:
|
|
- "proxy_buffering off;"
|
|
- "proxy_request_buffering off;"
|
|
location_options:
|
|
- "proxy_http_version 1.1;"
|
|
- "proxy_set_header Upgrade $http_upgrade;"
|
|
- 'proxy_set_header Connection "upgrade";'
|
|
- "proxy_read_timeout 86400;"
|
|
"*.doma.in":
|
|
all_names: "*.doma.in doma.in"
|
|
proxy_pass: "http://full.subdomain.proxy"
|
|
server_options:
|
|
- "proxy_buffering off;"
|
|
- "proxy_request_buffering off;"
|
|
- "client_max_body_size 0;"
|