fx-server
Tiny file-exchange server
go install github.com/mxmCherry/fx-server@latest
FX_SERVER_HTTP_ADDR="127.0.0.1:4433" \
FX_SERVER_HTTP_AUTOCERT_DOMAIN="localhost.localdomain" \
FX_SERVER_HTTP_AUTOCERT_CACHEDIR="autocert" \
FX_SERVER_STORAGE_DIR="uploads" \
FX_SERVER_HANDLER_AUTH_READ="reader1:pass1,reader2:pass2" \
FX_SERVER_HANDLER_AUTH_WRITE="writer1:pass1,writer2:pass2" \
FX_SERVER_HANDLER_ONESHOT="false" \
FX_SERVER_HANDLER_ALIASING="false"
fx-server
Deploying as Systemd Service
Deploying locally, under (optionally) separate user:
# make sure to populate .env - this will be copied as a service config
vi .env
# override deploy user, if needed;
# this user will be created if does not exist,
# and the app will be deployed as fx-server service under this user
DEPLOY_USER=pets make deploy