swim
swim is a binary that is for hosting static websites.
it exposes some simple prometheus metrics as well.
on launch, it will host the file source as a static web server
the file source can be: a local or http retreived folder, .zip, .tar.gz, or .tar
you can also specify overlays, which will be put on top of the base source
you may specify multiple overlays
what do we use this for
we use this to host our sites in development
this allows us to download on launch, the artifact from ci, while mounting a config file as an overlay
cli flags
-cache-control string
set cache control values
-dir string
home dir. (default ".")
-fs string
use the archive as the base fs
-host string
bind addr (default "0.0.0.0")
-metrics string
metrics port (default "6060")
-name string
app name (default "swim-app")
-ofs value
overlay filesystems
-ohome value
overlay homes
-port string
bind port (default "3838")