S3 API File Uploads #1
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.21.6-bookworm as build
|
FROM docker.io/golang:1.21.6-bookworm as build
|
||||||
|
|
||||||
ENV CGO_ENABLED=0 \
|
ENV CGO_ENABLED=0 \
|
||||||
GOOS=linux \
|
GOOS=linux \
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -38,4 +38,9 @@ install:
|
||||||
cp -f $(man_pages) $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
cp -f $(man_pages) $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||||
[ -f $(DESTDIR)$(config_path) ] || cp -f config.in $(DESTDIR)$(config_path)
|
[ -f $(DESTDIR)$(config_path) ] || cp -f config.in $(DESTDIR)$(config_path)
|
||||||
|
|
||||||
|
container:
|
||||||
|
buildah manifest create soju-multiarch
|
||||||
|
buildah bud --tag soju:latest --manifest soju-multiarch --arch amd64 .
|
||||||
|
buildah bud --tag soju:latest --manifest soju-multiarch --arch arm64 .
|
||||||
|
|
||||||
.PHONY: soju sojudb sojuctl clean install
|
.PHONY: soju sojudb sojuctl clean install
|
||||||
|
|
|
@ -166,6 +166,10 @@ The following directives are supported:
|
||||||
Supported drivers:
|
Supported drivers:
|
||||||
|
|
||||||
- _fs_ stores uploaded files on disk. _source_ is required.
|
- _fs_ stores uploaded files on disk. _source_ is required.
|
||||||
|
- _s3_ stores uploaded files in an s3-compatible api. _source_ is required and should be <s3 endpoint>/<bucket name>.
|
||||||
|
|
||||||
|
*file-cdn* <url>
|
||||||
|
Set the base url/cdn for file uploads, useful if using s3.
|
||||||
|
|
||||||
*http-origin* <patterns...>
|
*http-origin* <patterns...>
|
||||||
List of allowed HTTP origins for WebSocket listeners. The parameters are
|
List of allowed HTTP origins for WebSocket listeners. The parameters are
|
||||||
|
|
Loading…
Reference in a new issue