From 276484c63640f88f9ed3312463618fe077a7fee5 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 31 Aug 2017 17:48:46 +0800 Subject: [PATCH] update ocserv --- ocserv/3rd-party/README.md | 1 + ocserv/3rd-party/data/ocpasswd | 1 + ocserv/3rd-party/docker-compose.yml | 17 +++++++++++++++++ ocserv/Dockerfile | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ocserv/3rd-party/README.md create mode 100644 ocserv/3rd-party/data/ocpasswd create mode 100644 ocserv/3rd-party/docker-compose.yml diff --git a/ocserv/3rd-party/README.md b/ocserv/3rd-party/README.md new file mode 100644 index 0000000..333fbf2 --- /dev/null +++ b/ocserv/3rd-party/README.md @@ -0,0 +1 @@ +See: https://github.com/TommyLau/docker-ocserv diff --git a/ocserv/3rd-party/data/ocpasswd b/ocserv/3rd-party/data/ocpasswd new file mode 100644 index 0000000..e0ac10b --- /dev/null +++ b/ocserv/3rd-party/data/ocpasswd @@ -0,0 +1 @@ +username:Route,All:$1$nBw0FZLD$lwcS7JcqSEZ5YcBNKTels1 diff --git a/ocserv/3rd-party/docker-compose.yml b/ocserv/3rd-party/docker-compose.yml new file mode 100644 index 0000000..5c1e22e --- /dev/null +++ b/ocserv/3rd-party/docker-compose.yml @@ -0,0 +1,17 @@ +ocserv: + image: tommylau/ocserv + ports: + - "4443:443/tcp" + - "4443:443/udp" + volumes: + - ./data/ocpasswd:/etc/ocserv/ocpasswd + environment: + - CA_CN=EasyPi + - CA_DAYS=3650 + - CA_ORG=EasyPi + - SRV_CN=vpn.easypi.pro + - SRV_DAYS=365 + - SRV_ORG=EasyPi + - NO_TEST_USER=1 + privileged: yes + restart: always diff --git a/ocserv/Dockerfile b/ocserv/Dockerfile index f198182..8956141 100644 --- a/ocserv/Dockerfile +++ b/ocserv/Dockerfile @@ -5,7 +5,7 @@ FROM debian:jessie MAINTAINER kev -ENV OCSERV_VERSION 0.11.3 +ENV OCSERV_VERSION 0.11.8 RUN set -xe \ && apt-get update \