summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-30 14:18:12 +0200
committerGitHub <noreply@github.com>2024-05-30 14:18:12 +0200
commit94ee1d8f1f7f0c539c64f3f1e72e8fa8040a5a97 (patch)
treecad6b5cdeadfbbcfb986f4532dfd1ae24946a349 /op-mode-definitions
parent8facd624f778742426563916ffb362a1271b33c1 (diff)
parent5cfca2850ddbd9e2b594de1250d0064c1461ab59 (diff)
downloadvyos-1x-94ee1d8f1f7f0c539c64f3f1e72e8fa8040a5a97.tar.gz
vyos-1x-94ee1d8f1f7f0c539c64f3f1e72e8fa8040a5a97.zip
Merge pull request #3555 from vyos/mergify/bp/sagitta/pr-3546
reverse-proxy: T6419: build full CA chain when verifying backend server (backport #3546)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/reverse-proxy.xml.in23
-rw-r--r--op-mode-definitions/show-reverse-proxy.xml.in13
2 files changed, 23 insertions, 13 deletions
diff --git a/op-mode-definitions/reverse-proxy.xml.in b/op-mode-definitions/reverse-proxy.xml.in
new file mode 100644
index 000000000..4af24880b
--- /dev/null
+++ b/op-mode-definitions/reverse-proxy.xml.in
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="restart">
+ <children>
+ <node name="reverse-proxy">
+ <properties>
+ <help>Restart reverse-proxy service</help>
+ </properties>
+ <command>if cli-shell-api existsActive load-balancing reverse-proxy; then sudo systemctl restart haproxy.service; else echo "Reverse-Proxy not configured"; fi</command>
+ </node>
+ </children>
+ </node>
+ <node name="show">
+ <children>
+ <node name="reverse-proxy">
+ <properties>
+ <help>Show load-balancing reverse-proxy</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/reverseproxy.py show</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-reverse-proxy.xml.in b/op-mode-definitions/show-reverse-proxy.xml.in
deleted file mode 100644
index ed0fee843..000000000
--- a/op-mode-definitions/show-reverse-proxy.xml.in
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0"?>
-<interfaceDefinition>
- <node name="show">
- <children>
- <node name="reverse-proxy">
- <properties>
- <help>Show load-balancing reverse-proxy</help>
- </properties>
- <command>sudo ${vyos_op_scripts_dir}/reverseproxy.py show</command>
- </node>
- </children>
- </node>
-</interfaceDefinition>