fx-server

command module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Unlicense Imports: 12 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL