21 lines
607 B
Go
21 lines
607 B
Go
// Command sww is a web application firewall. `sww rproxy` is the reverse
|
|
// proxy in front of one app, which asks discriminator about each request.
|
|
// `sww discriminator` decides, for many sites, and keeps what lasts. `sww
|
|
// healthcheck` is the container's health check. Everything it does is in
|
|
// internal/sww.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"sneak.berlin/go/smallwebwaf/internal/sww"
|
|
)
|
|
|
|
// Version is the version of the binary, set when it is built with
|
|
// -ldflags "-X main.Version=...".
|
|
var Version = "dev" //nolint:gochecknoglobals // the linker sets it
|
|
|
|
func main() {
|
|
os.Exit(sww.Main(Version))
|
|
}
|