Changes: - add jinja2 template engine instead of string-replacing - fix certbot cron usage - replace json servers configuration with yaml
24 lines
715 B
Plaintext
24 lines
715 B
Plaintext
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;"
|