summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-06 20:57:20 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-09 23:36:20 +0100
commitfc7b8a225879a216788b68fefba5390e9d9f0ee4 (patch)
tree1d998441ca518f4e0cdacaf339d8fae500af22be /data/templates
parent977dbf6b9452a81e7f04789182f852afe5f3a0bd (diff)
downloadvyos-1x-fc7b8a225879a216788b68fefba5390e9d9f0ee4.tar.gz
vyos-1x-fc7b8a225879a216788b68fefba5390e9d9f0ee4.zip
https: T4055: add vrf support
(cherry picked from commit 955f260ce682d64d27b3b11e618b1ae0176e4b91)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/https/override.conf.tmpl15
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