Skip to content

Commit

Permalink
Migrate JSON config to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmoby committed Nov 12, 2021
1 parent 41bc9cd commit 9360569
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 85 deletions.
2 changes: 1 addition & 1 deletion wireguard_client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.1
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.2.2
# hadolint ignore=DL3006
FROM ${BUILD_FROM}

Expand Down
9 changes: 0 additions & 9 deletions wireguard_client/build.json

This file was deleted.

7 changes: 7 additions & 0 deletions wireguard_client/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:10.2.2
amd64: ghcr.io/hassio-addons/base/amd64:10.2.2
armhf: ghcr.io/hassio-addons/base/armhf:10.2.2
armv7: ghcr.io/hassio-addons/base/armv7:10.2.2
i386: ghcr.io/hassio-addons/base/i386:10.2.2
75 changes: 0 additions & 75 deletions wireguard_client/config.json

This file was deleted.

55 changes: 55 additions & 0 deletions wireguard_client/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: WireGuard Client
version: 0.1.9
slug: wireguard_client
description: Fast, modern, secure Wireguard tunnel (client)
url: https://github.com/bigmoby/addon-wireguard-client
arch:
- aarch64
- amd64
- armhf
- armv7
- i386
apparmor: true
host_network: true
init: false
ports:
80/tcp: 80
ports_description:
80/tcp: WireGuard client status API
hassio_api: true
privileged:
- NET_ADMIN
devices:
- /dev/net/tun
map:
- ssl:rw
options:
interface:
private_key: ""
address: 10.6.0.2
dns: [ 8.8.8.8, 8.8.4.4]
post_up: "iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE"
post_down: "iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE"
peer:
public_key: ""
pre_shared_key: ""
endpoint: "xxxxxx.duckdns.com:51820"
allowed_ips: [ "10.6.0.0/24" ]
persistent_keep_alive: "25"
schema:
log_level: list(trace|debug|info|notice|warning|error|fatal)?
interface:
private_key: password?
address: str
dns:
- str
post_up: str
post_down: str
peer:
public_key: str?
pre_shared_key: str?
endpoint: str
allowed_ips:
- str
persistent_keep_alive: int

0 comments on commit 9360569

Please sign in to comment.