-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pashcovich/draft-password-auth
Additional password auth Multiple mgmt interface usgae Layout changes Small fixes
- Loading branch information
Showing
16 changed files
with
366 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ frontend/node_modules | |
openvpn-web-ui | ||
openvpn-ui | ||
openvpn-admin | ||
|
||
docker-compose.yaml | ||
docker-compose-slave.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
FROM golang:1.14.2-alpine3.11 AS backend-builder | ||
FROM golang:1.14.2-buster AS backend-builder | ||
COPY . /app | ||
#RUN apk --no-cache add build-base git gcc | ||
RUN cd /app && env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-extldflags "-static" -s -w' -o openvpn-admin | ||
RUN cd /app && env CGO_ENABLED=./1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o openvpn-admin | ||
|
||
FROM node:14.2-alpine3.11 AS frontend-builder | ||
COPY frontend/ /app | ||
RUN cd /app && npm install && npm run build | ||
|
||
FROM alpine:3.11 | ||
FROM alpine:3.13 | ||
WORKDIR /app | ||
COPY --from=backend-builder /app/openvpn-admin /app | ||
COPY --from=frontend-builder /app/static /app/static | ||
COPY client.conf.tpl /app/client.conf.tpl | ||
COPY ccd.tpl /app/ccd.tpl | ||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \ | ||
apk add --update bash easy-rsa && \ | ||
RUN apk add --update bash easy-rsa && \ | ||
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ | ||
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.3-rc.1/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin && \ | ||
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM alpine:3.11 | ||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \ | ||
apk add --update bash openvpn easy-rsa && \ | ||
FROM alpine:3.13 | ||
RUN apk add --update bash openvpn easy-rsa && \ | ||
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ | ||
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.3-rc.1/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin && \ | ||
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* | ||
COPY .werffiles /etc/openvpn/setup | ||
COPY setup/ /etc/openvpn/setup | ||
RUN chmod +x /etc/openvpn/setup/configure.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-extldflags "-static" -s -w' -o openvpn-admin | ||
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-linkmode external -extldflags -static -s -w" -o openvpn-admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.