1.1 KiB
1.1 KiB
sfu
simple requirementless, authenticationless file upload server
prod version
- to expose a local folder called
./files:
docker run --name sfu -d \
-v $(pwd)/files:/opt/sfu/files \
-e SFU_FILES_DIR=/opt/sfu/files \
-e SFU_PORT=80 \
-p 8000:80 \
185504a9/sfu
- ... modify accordingly
dev version
docker
- take a look at docker-compose and modify the envvars accordingly. the default values should work as long as you're ok with a
files/folder being created and your user UID and GID are 1000. if for some reason you need other ids, please add them like this:
...
app:
build:
context: .
target: run_dev
environment:
- SFU_PORT=80
- SFU_FILES_DIR=./files
- gid=1234
- uid=1234
...
dockerless
- sfu needs two envvars to be set
SFU_PORT: the port to listen onSFU_FILES_DIR: the directory to store files in
- run the server
go build
SFU_PORT=80 SFU_FILES_DIR=./files ./main