⚠️ This is an overly simplistic file sharing app written ingo
meant for skill testing purpose. Definitely NOT meant for production!!!
# Server is available on port 8080
go run ./cmd
-
BLOB_STORAGE_URL
: Blob storage URL. It is used to persist all files shared on the app. We supports3://
,file://
andmem://
(not for production use). More details on those URL schemes here. More specifically for S3 compatible storage. -
PUBLIC_URL
: The URL on which the service is available publicly (that is, to end-users). It is useful in case the app is exposed thru a reverse proxy. If not set, the app will try to guess the public URL based on common headers. (example value:https://shareit.example.com
)
- Can be built from the provided
Dockerfile
- Can be built with ko
An health check endpoint is available at /healthz
. It is advised to use it as it checks the availability of the underlying storage. A status code of 200 OK means everything is fine.