diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-06 20:57:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-09 23:36:20 +0100 |
commit | fc7b8a225879a216788b68fefba5390e9d9f0ee4 (patch) | |
tree | 1d998441ca518f4e0cdacaf339d8fae500af22be /data/templates/https/override.conf.tmpl | |
parent | 977dbf6b9452a81e7f04789182f852afe5f3a0bd (diff) | |
download | vyos-1x-fc7b8a225879a216788b68fefba5390e9d9f0ee4.tar.gz vyos-1x-fc7b8a225879a216788b68fefba5390e9d9f0ee4.zip |
https: T4055: add vrf support
(cherry picked from commit 955f260ce682d64d27b3b11e618b1ae0176e4b91)
Diffstat (limited to 'data/templates/https/override.conf.tmpl')
-rw-r--r-- | data/templates/https/override.conf.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/https/override.conf.tmpl b/data/templates/https/override.conf.tmpl new file mode 100644 index 000000000..824b1ba3b --- /dev/null +++ b/data/templates/https/override.conf.tmpl @@ -0,0 +1,15 @@ +{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is 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 |