From 4c5939067cbb30b4d5dfb5e885823096918f93e2 Mon Sep 17 00:00:00 2001 From: seaspark Date: Thu, 22 Feb 2024 21:37:57 +0000 Subject: [PATCH] Add cockpit configuration --- root_resources/etc/cockpit/cockpit.conf | 9 +++++++++ root_resources/etc/wireguard/wg0.conf | 1 + 2 files changed, 10 insertions(+) create mode 100644 root_resources/etc/cockpit/cockpit.conf diff --git a/root_resources/etc/cockpit/cockpit.conf b/root_resources/etc/cockpit/cockpit.conf new file mode 100644 index 0000000..4ee6faa --- /dev/null +++ b/root_resources/etc/cockpit/cockpit.conf @@ -0,0 +1,9 @@ +[WebService] +Origins = https://cockpit.{{ domain_name }} wss://cockpit.{{ domain_name }} +ProtocolHeader = X-Forwarded-Proto + +[Log] +Fatal = /var/log/cockpit.log + +[Session] +IdleTimeout=15 diff --git a/root_resources/etc/wireguard/wg0.conf b/root_resources/etc/wireguard/wg0.conf index d2fc2eb..ed3f0f1 100644 --- a/root_resources/etc/wireguard/wg0.conf +++ b/root_resources/etc/wireguard/wg0.conf @@ -9,3 +9,4 @@ DNS = 1.1.1.1 PublicKey = {{ vpn_server_pubkey }} Endpoint = {{ domain_name }}:51820 AllowedIPs = 10.0.0.1/32 # Only any packets to/from our Proxy server will be tunneled by the VPN +PersistentKeepalive = 25