update 2024-04-22
Changes: - add jinja2 template engine instead of string-replacing - fix certbot cron usage - replace json servers configuration with yaml
This commit is contained in:
23
nginx/servers.yaml.example
Normal file
23
nginx/servers.yaml.example
Normal file
@@ -0,0 +1,23 @@
|
||||
resolver: 127.0.0.1
|
||||
acme_challenge_location: /etc/nginx/acme/
|
||||
|
||||
servers:
|
||||
your.domain.to_redirect:
|
||||
redirect: "http://redirection.address"
|
||||
your_other.doma.in:
|
||||
redirect: "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"
|
||||
redirect: "http://full.subdomain.redirect"
|
||||
server_options:
|
||||
- "proxy_buffering off;"
|
||||
- "proxy_request_buffering off;"
|
||||
- "client_max_body_size 0;"
|
||||
Reference in New Issue
Block a user