mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 09:12:13 -08:00
Compare commits
1 Commits
af81110096
...
bf1d80ed55
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf1d80ed55 |
@ -2,7 +2,7 @@ FROM node:16-alpine3.15 AS frontend-builder
|
||||
COPY ../frontend /app
|
||||
RUN apk add --update python3 make g++ && cd /app && npm install && npm run build
|
||||
|
||||
FROM golang:1.24.2-bullseye AS backend-builder
|
||||
FROM golang:1.24.1-bullseye AS backend-builder
|
||||
RUN go install github.com/gobuffalo/packr/v2/packr2@latest
|
||||
COPY --from=frontend-builder /app/static /app/frontend/static
|
||||
COPY .. /app
|
||||
|
||||
@ -22,7 +22,6 @@ services:
|
||||
ovpn-admin:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.ovpn-admin
|
||||
image: ovpn-admin:local
|
||||
command: /app/ovpn-admin
|
||||
environment:
|
||||
|
||||
@ -21,10 +21,10 @@ else
|
||||
done
|
||||
else
|
||||
echo "Generating new certs"
|
||||
easyrsa --batch init-pki
|
||||
easyrsa init-pki
|
||||
cp -R /usr/share/easy-rsa/* $EASY_RSA_LOC/pki
|
||||
echo "ca" | easyrsa build-ca nopass
|
||||
easyrsa --batch build-server-full server nopass
|
||||
easyrsa build-server-full server nopass
|
||||
easyrsa gen-dh
|
||||
openvpn --genkey --secret ./pki/ta.key
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user