Files
hysteria2/roles/hysteria2/templates/config.yaml.j2
T
Sergey Antropoff b21ac665f8 Document TLS-ALPN renewal so TCP 443 stays free for the challenge.
A permanent listener on 443 would block renewal the same way forceHTTPS blocked HTTP-01 on main.
2026-10-06 13:11:47 +03:00

24 lines
778 B
Django/Jinja

listen: 0.0.0.0:{{ hysteria2_listen_port }}
acme:
# TLS-ALPN-01 на 443/tcp. Постоянный слушатель TCP 443 не поднимаем
# (нет masquerade listenHTTP/listenHTTPS/forceHTTPS): иначе проверка
# не доходит до ACME-клиента и сертификат не продлевается.
# listen Hysteria — UDP; TCP 443 свободен и занимается только на время проверки.
type: tls
domains:
- {{ hysteria2_domain }}
email: {{ hysteria2_acme_email }}
auth:
type: userpass
userpass:
{% for user in hysteria2_resolved_users %}
{{ user.name }}: "{{ user.password }}"
{% endfor %}
obfs:
type: salamander
salamander:
password: "{{ hysteria2_obfs_password }}"