deploy_adguard/templates/adguard-connect-proxy.service.j2

13 lines
353 B
Django/Jinja

[Unit]
Description=Consul Envoy Proxy for Adguard.
After=adguard.service,consul.service
[Service]
EnvironmentFile=-{{ deploy_adguard_directory }}/adguard-connect-proxy.env
ExecStart=/usr/bin/consul connect envoy -sidecar-for {{ deploy_adguard_consul['configuration']['service']['name'] }}
Restart=always
RestartSec=3
[Install]
WantedBy=default.target