diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-06 20:57:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-06 20:57:20 +0100 |
commit | 955f260ce682d64d27b3b11e618b1ae0176e4b91 (patch) | |
tree | ae835bd23113b0fadfb96ba41bfd4d8a1149d049 /data | |
parent | 93b7c5f60ebe4d29ecde33db03b0eec8495ff104 (diff) | |
download | vyos-1x-955f260ce682d64d27b3b11e618b1ae0176e4b91.tar.gz vyos-1x-955f260ce682d64d27b3b11e618b1ae0176e4b91.zip |
https: T4055: add vrf support
Diffstat (limited to 'data')
-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 |