Add wireguard server config

This commit is contained in:
Jake Howard
2019-12-08 21:05:20 +00:00
parent 730246e67f
commit 23a472f764
7 changed files with 62 additions and 9 deletions

View File

@ -40,7 +40,7 @@ defaults
listen https
bind *:443
mode tcp
server default {{ upstream }}:443 check send-proxy
server default {{ wireguard.intersect_ip }}:443 check send-proxy
listen http
bind *:80
@ -48,15 +48,15 @@ listen http
stats show-node
stats uri /haproxy
stats auth stats:{{ haproxy_stats_pass }}
server default {{ upstream }}:80 check
server default {{ wireguard.intersect_ip }}:80 check
listen matrix
bind *:8448
mode tcp
server default {{ upstream }}:8448 check
server default {{ wireguard.intersect_ip }}:8448 check
listen gitea
bind *:3022
mode tcp
server default {{ upstream }}:3022 check
server default {{ wireguard.intersect_ip }}:3022 check

View File

@ -0,0 +1,9 @@
[Interface]
Address = {{ wireguard.server_ip }}
PrivateKey = {{ wireguard.server_private_key }}
ListenPort = {{ wireguard.server_port }}
[Peer]
# intersect
PublicKey = {{ wireguard.intersect_public_key }}
AllowedIPs = {{ wireguard.intersect_ip }}/32