good morning!!!!

Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • renovate/github.com-prometheus-client_golang-1.x
  • renovate/golang-1.x
  • renovate/github.com-go-chi-chi-v5-5.x
  • renovate/github.com-spf13-afero-1.x
  • caddy
  • swim
  • v0.0.13
  • v0.0.12
  • v0.0.11
  • v0.0.10
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
20 results

swim

  • Clone with SSH
  • Clone with HTTPS
  • a's avatar
    a authored
    Update dependency placeholders to v4
    
    See merge request !7
    d61922af
    History

    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")