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