Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate JSON config to YAML #173

Merged
merged 1 commit into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions wireguard/build.json

This file was deleted.

7 changes: 7 additions & 0 deletions wireguard/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.0.1
amd64: ghcr.io/hassio-addons/base/amd64:10.0.1
armhf: ghcr.io/hassio-addons/base/armhf:10.0.1
armv7: ghcr.io/hassio-addons/base/armv7:10.0.1
i386: ghcr.io/hassio-addons/base/i386:10.0.1
68 changes: 0 additions & 68 deletions wireguard/config.json

This file was deleted.

70 changes: 70 additions & 0 deletions wireguard/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
name: WireGuard
version: dev
slug: wireguard
description: Fast, modern, secure VPN tunnel
url: https://github.com/hassio-addons/addon-wireguard
arch:
- aarch64
- amd64
- armhf
- armv7
- i386
init: false
ports:
80/tcp: null
51820/udp: 51820
ports_description:
80/tcp: WireGuard peers status API
51820/udp: "WireGuard: forward this port in your router"
hassio_api: true
privileged:
- NET_ADMIN
devices:
- /dev/net/tun
map:
- ssl:rw
options:
server:
host: myautomatedhome.duckdns.org
addresses:
- 172.27.66.1
dns: []
peers:
- name: hassio
addresses:
- 172.27.66.2
allowed_ips: []
client_allowed_ips: []
schema:
log_level: list(trace|debug|info|notice|warning|error|fatal)?
server:
host: str
interface: match(^wg([0-9])+$)?
addresses:
- str
dns:
- str
private_key: password?
public_key: str?
fwmark: str?
table: str?
pre_up: str?
pre_down: str?
post_up: str?
post_down: str?
mtu: int?
peers:
- name: match(^[a-zA-Z0-9\d](?:[a-zA-Z0-9\d]|-(?=[a-zA-Z0-9\d])){0,32}$)
private_key: str?
public_key: str?
addresses:
- str
allowed_ips:
- str
client_allowed_ips:
- str
persistent_keep_alive: int?
endpoint: str?
pre_shared_key: str?
fwmark: str?