mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 01:10:22 -08:00
Compare commits
8 Commits
28535e236f
...
ff3a08d983
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff3a08d983 | ||
|
|
91dfa75ccd | ||
|
|
3d558566ea | ||
|
|
a591f3bec3 | ||
|
|
36b6964f8c | ||
|
|
2fc8f729b9 | ||
|
|
f5fc3e988f | ||
|
|
fde4bed8aa |
@ -1,8 +1,8 @@
|
|||||||
FROM node:16-alpine3.15 AS frontend-builder
|
FROM node:19-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
|
||||||
|
|||||||
@ -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