Skip to content

Commit c1d63d0

Browse files
committed
README update
1 parent 2ca887f commit c1d63d0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ However it works fine as standalone application as well.
1919

2020
* Status page that shows server statistics and list of connected clients
2121
* Easy to **generate**, **download**, **revoke** and **delete** client certificates
22+
* Change predefined EasyRSA vars including certificates and CRL expiration time
2223
* You can set static IP to clients and
2324
* Add secret passphrase during client certificate generation
2425
* Easy to preview OpenVPN Server logs, as well as do
@@ -85,6 +86,22 @@ services:
8586
cap_add:
8687
- NET_ADMIN
8788
restart: always
89+
90+
openvpn-ui:
91+
container_name: openvpn-ui
92+
image: d3vilh/openvpn-ui:latest
93+
environment:
94+
- OPENVPN_ADMIN_USERNAME=admin
95+
- OPENVPN_ADMIN_PASSWORD=gagaZush
96+
privileged: true
97+
ports:
98+
- "8080:8080/tcp"
99+
volumes:
100+
- ./:/etc/openvpn
101+
- ./db:/opt/openvpn-gui/db
102+
- ./pki:/usr/share/easy-rsa/pki
103+
- /var/run/docker.sock:/var/run/docker.sock:ro
104+
restart: always
88105
```
89106

90107
## Run this image using the Docker itself
@@ -122,6 +139,25 @@ docker run --interactive --tty --rm \
122139
--privileged d3vilh/openvpn-server:latest
123140
```
124141

142+
If you are running OpenVPN-UI with `d3vilh/openvpn-server` please be sure `easy-rsa.vars` is set properly and put in `.config` container volume as `easy-rsa.vars` file. In this case your custom EasyRSA options will be applyied correctly during root CA certificate generation.
143+
144+
Here is `easy-rsa.vars` file example:
145+
```shell
146+
set_var EASYRSA_DN "org"
147+
set_var EASYRSA_REQ_COUNTRY "UA"
148+
set_var EASYRSA_REQ_PROVINCE "KY"
149+
set_var EASYRSA_REQ_CITY "Kyiv"
150+
set_var EASYRSA_REQ_ORG "SweetHome"
151+
set_var EASYRSA_REQ_EMAIL "[email protected]"
152+
set_var EASYRSA_REQ_OU "MyOrganizationalUnit"
153+
set_var EASYRSA_REQ_CN "server"
154+
set_var EASYRSA_KEY_SIZE 2048
155+
set_var EASYRSA_CA_EXPIRE 3650
156+
set_var EASYRSA_CERT_EXPIRE 825
157+
set_var EASYRSA_CERT_RENEW 30
158+
set_var EASYRSA_CRL_DAYS 180
159+
```
160+
125161
## Build the image
126162
### Prerequisites
127163
As prerequisite, you need to have Docker and GoLang to be installed and running:

0 commit comments

Comments
 (0)