Files
hysteria2/roles/hysteria2/templates/config.yaml.j2
T
inecs df19816039 Initial commit: Ansible role for Hysteria2 VPN server deployment.
Includes install/update/uninstall playbooks, Makefile, vault-based SSH credentials, per-server and global HTML export with QR codes.
2026-07-01 02:02:58 +03:00

23 lines
424 B
Django/Jinja

listen: 0.0.0.0:{{ hysteria2_listen_port }}
acme:
type: http
domains:
- {{ hysteria2_domain }}
email: {{ hysteria2_acme_email }}
auth:
type: userpass
userpass:
{% for user in hysteria2_resolved_users %}
{{ user.name }}: "{{ user.password }}"
{% endfor %}
masquerade:
type: file
file:
dir: {{ hysteria2_masq_dir }}
listenHTTP: :80
listenHTTPS: :{{ hysteria2_listen_port }}
forceHTTPS: true