init olm role

This commit is contained in:
2026-01-26 16:07:22 -07:00
parent 11118c2efa
commit 9a6185846a
5 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
"endpoint": "{{ olm_endpoint }}",
"id": "{{ olm_id }}",
"secret": "{{ olm_secret }}",
"org": "",
"userToken": "",
"mtu": 1280,
"dns": "8.8.8.8",
"upstreamDNS": [
"192.168.1.2"
],
"interface": "olm",
"logLevel": "{{ olm_loglevel }}",
"enableApi": false,
"httpAddr": "",
"socketPath": "/var/run/olm.sock",
"pingInterval": "3s",
"pingTimeout": "5s",
"disableHolepunch": false,
"tlsClientCert": "",
"overrideDNS": {{ olm_override_dns }},
"tunnelDNS": {{ olm_tunnel_dns }},
"disableRelay": false,
"Version": "1.4.0"
}

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Olm
After=network.target
[Service]
ExecStart=/usr/local/bin/olm
Restart=always
User=root
Environment="CONFIG_FILE={{ olm_config_path }}/config.json"
[Install]
WantedBy=multi-user.target