diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:46:44 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:47:07 +0200 |
commit | 5ec208ed9ee060f7c1a7707dc2369c83657196e8 (patch) | |
tree | 59419760dd18a2f65b621746910e9c2fa47d4edf /data/templates/https/override.conf.j2 | |
parent | f38ce741c2852e4eaeeaa23736960d9a717b600f (diff) | |
download | vyos-1x-5ec208ed9ee060f7c1a7707dc2369c83657196e8.tar.gz vyos-1x-5ec208ed9ee060f7c1a7707dc2369c83657196e8.zip |
http: api: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/https/override.conf.j2')
-rw-r--r-- | data/templates/https/override.conf.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/https/override.conf.j2 b/data/templates/https/override.conf.j2 new file mode 100644 index 000000000..c2c191b06 --- /dev/null +++ b/data/templates/https/override.conf.j2 @@ -0,0 +1,15 @@ +{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %} +[Unit] +StartLimitIntervalSec=0 +After=vyos-router.service + +[Service] +ExecStartPre= +ExecStartPre={{ vrf_command }}/usr/sbin/nginx -t -q -g 'daemon on; master_process on;' +ExecStart= +ExecStart={{ vrf_command }}/usr/sbin/nginx -g 'daemon on; master_process on;' +ExecReload= +ExecReload={{ vrf_command }}/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload +Restart=always +RestartPreventExitStatus= +RestartSec=10 |