cosmostat working

This commit is contained in:
2026-03-29 09:39:43 -07:00
parent 97fdb3d5d8
commit 4c4d9e4d6f
19 changed files with 813 additions and 491 deletions

View File

@ -20,6 +20,7 @@ ansible_hostname: "{{ ansible_hostname }}"
# docker subnet, will use to bind the IP in default secure mode
api_bind_ip: {{ api_bind_ip }}
docker_gateway: {{ docker_gateway }}
local_api_address: {{ local_api_address }}
# python system variables, no quotes for bool or int
secure_api: {{ secure_api }}
@ -33,4 +34,7 @@ custom_api_port: {{ custom_api_port }}
cosmostat_server: {{ cosmostat_server }}
cosmostat_server_api: "{{ cosmostat_server_api }}"
cosmostat_server_reporter: {{ cosmostat_server_reporter }}
disable_local_api: {{ disable_local_api }}
REAL_API_KEY: "{{ REAL_API_KEY }}"
cosmostat_server_ip: "{{ cosmostat_server_ip }}"
...

15
templates/vpn_client.conf Normal file
View File

@ -0,0 +1,15 @@
client
dev tun
proto {{ vpn_proto }}
remote {{ vpn_server_ip }} {{ vpn_port }}
resolv-retry infinite
nobind
persist-key
persist-tun
user nobody
group nogroup
tls-auth {{ psk_key_path }} 1
cipher AES-256-GCM
auth SHA256

19
templates/vpn_server.conf Normal file
View File

@ -0,0 +1,19 @@
ifconfig-pool-persist ipp.txt
port {{ vpn_port }}
proto {{ vpn_proto }}
dev tun
tls-crypt {{ psk_key_path }}
server {{ vpn_network }} {{ vpn_netmask }}
topology subnet
push "route {{ private_server_address }} 255.255.255.255"
keepalive 10 120
cipher AES-256-GCM
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1