diff --git a/nginx/add_servers.py b/nginx/add_servers.py index 0a19afe..b725ea4 100644 --- a/nginx/add_servers.py +++ b/nginx/add_servers.py @@ -126,7 +126,7 @@ def main() -> None: ), proxy_pass=params.get("proxy_pass"), certificate_dir=_get_certificate_path( - args.http_only, domains_with_certs, args.certificates_path, server_name + args.http_only, domains_with_certs, args.certificates_path, params.get("certificate_name") or server_name ), port=params.get("port"), ssl_port=params.get("ssl_port"), diff --git a/nginx/servers.yaml.example b/nginx/servers.yaml.example index f846659..0c3dc4b 100644 --- a/nginx/servers.yaml.example +++ b/nginx/servers.yaml.example @@ -17,6 +17,7 @@ servers: - "proxy_read_timeout 86400;" "*.doma.in": all_names: "*.doma.in doma.in" + certificate_name: doma.in proxy_pass: "http://full.subdomain.proxy" server_options: - "proxy_buffering off;" diff --git a/run_once.d-c.yml b/run_once.d-c.yml index d68047c..410a00f 100644 --- a/run_once.d-c.yml +++ b/run_once.d-c.yml @@ -1,4 +1,4 @@ -version: '3.4' +name: run_once services: certbot: