From d4c4179dd1ff106ec6a89ef8027555caf1b6d072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=20Gl=C3=A4=C3=9F-St=C3=B6cker?= Date: Wed, 7 Oct 2020 09:37:14 +0200 Subject: [PATCH] Initial commit --- Dockerfile | 14 ++++++++++++++ README.md | 0 config.toml | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 config.toml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..765d56b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# build stage +FROM golang:alpine AS build-env +RUN apk --no-cache add build-base git gcc +RUN go get github.com/ThomasLeister/prosody-filer +RUN cd $GOPATH/src/github.com/ThomasLeister/prosody-filer; \ + VERSIONSTRING="$(git describe --tags --exact-match || git rev-parse --short HEAD)"; \ + echo "Building version ${VERSIONSTRING} of Prosody-Filer ..." \ + ./build.sh + +# final stage +FROM alpine +WORKDIR /app +COPY --from=build-env /go/bin/prosody-filer /app/ +ENTRYPOINT /app/prosody-filer diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..fdb7d49 --- /dev/null +++ b/config.toml @@ -0,0 +1,15 @@ +### +### Server configuration +### (rename this file to "config.toml"!) + +### IP address and port to listen to, e.g. "[::]:5050" to listen to ipv6 and ipv4 addresses +listenport = "[::]:5050" + +### Secret (must match the one in prosody.conf.lua!) +secret = "mysecret" + +### Where to store the uploaded files +storeDir = "./uploads/" + +### Subdirectory for HTTP upload / download requests (usually "upload/") +uploadSubDir = "upload/"