Skip to content

Commit 5017fb5

Browse files
committed
update readme, fix default env file
1 parent 29cd73a commit 5017fb5

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

README-RASPBERRYPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WireGuard Portal on Raspberry Pi
22

3-
This readme only contains a detailed explanation of how to setup the WireGuard Portal service on a raspberry pi (>= 3).
3+
This readme only contains a detailed explanation of how to set up the WireGuard Portal service on a raspberry pi (>= 3).
44

55
## Setup
66

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ It also supports LDAP (Active Directory or OpenLDAP) as authentication provider.
2929
* Responsive template
3030
* One single binary
3131
* Can be used with existing WireGuard setups
32+
* Support for multiple WireGuard interfaces
3233

3334
![Screenshot](screenshot.png)
3435

@@ -54,14 +55,21 @@ services:
5455
ports:
5556
- '8123:8123'
5657
environment:
58+
# WireGuard Settings
59+
- WG_DEVICES=wg0
60+
- WG_DEFAULT_DEVICE=wg0
61+
- WG_CONFIG_PATH=/etc/wireguard
62+
# Core Settings
5763
- EXTERNAL_URL=https://vpn.company.com
5864
- WEBSITE_TITLE=WireGuard VPN
5965
- COMPANY_NAME=Your Company Name
60-
- MAIL_FROM=WireGuard VPN <[email protected]>
6166
6267
- ADMIN_PASS=supersecret
68+
# Mail Settings
69+
- MAIL_FROM=WireGuard VPN <[email protected]>
6370
- EMAIL_HOST=10.10.10.10
6471
- EMAIL_PORT=25
72+
# LDAP Settings
6573
- LDAP_ENABLED=true
6674
- LDAP_URL=ldap://srv-ad01.company.local:389
6775
- LDAP_BASEDN=DC=COMPANY,DC=LOCAL
@@ -71,7 +79,7 @@ services:
7179
```
7280
Please note that mapping ```/etc/wireguard``` to ```/etc/wireguard``` inside the docker, will erase your host's current configuration.
7381
If needed, please make sure to backup your files from ```/etc/wireguard```.
74-
For a full list of configuration options take a look at the source file [internal/common/configuration.go](internal/common/configuration.go#L57).
82+
For a full list of configuration options take a look at the source file [internal/server/configuration.go](internal/server/configuration.go#L56).
7583

7684
### Standalone
7785
For a standalone application, use the Makefile provided in the repository to build the application.
@@ -90,6 +98,7 @@ A detailed description for using this software with a raspberry pi can be found
9098

9199
* Generation or application of any `iptables` or `nftables` rules
92100
* Setting up or changing IP-addresses of the WireGuard interface on operating systems other than linux
101+
* Importing private keys of an existing WireGuard setup
93102

94103
## Application stack
95104

scripts/wg-portal.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
LISTENING_ADDRESS=:8080
2+
WG_DEVICES=wg0
3+
WG_DEFAULT_DEVICE=wg0
4+
WG_CONFIG_PATH=/etc/wireguard
25
EXTERNAL_URL=https://vpn.company.com
36
WEBSITE_TITLE=WireGuard VPN
47
COMPANY_NAME=Your Company Name
5-
ADMIN_USER=admin
8+
ADMIN_USER=admin@wgportal.local
69
ADMIN_PASS=supersecret

0 commit comments

Comments
 (0)