mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
* Add support for alerts via shoutrrr This provides users the ability to use a wide variety of notification platforms instead of just email. If there's a problem sending a notification via shoutrrr, an error is logged and email is attempted as a fallback. Since this uses Viper, users can set a notification type and URL via either a config file or environment variable. In the beszel_data folder (where the sqlite dbs reside), create an alerts.env file to set values that way. Values: * NOTIFICATION_TYPE * If this is `shoutrrr`, then the shoutrrr library is used. Any other value, including not being set, uses the fallback email behavior. * NOTIFICATION_URL * If NOTIFICATION_TYPE is shoutrrr, this is the URL given to shoutrrr to send the alert. See list of supported services: https://containrrr.dev/shoutrrr/services/overview/ Note: there's currently a bug in viper v1.18.2+ where environment variable overrides aren't functioning when no config file exists, so this library should remain pinned to 1.18.1 until that's fixed. See: https://github.com/spf13/viper/issues/1895 * Update documentation * Log shoutrrr URL instead of unused "to" var
116 lines
5.5 KiB
Modula-2
116 lines
5.5 KiB
Modula-2
module beszel
|
|
|
|
go 1.22.4
|
|
|
|
require (
|
|
github.com/blang/semver v3.5.1+incompatible
|
|
github.com/containrrr/shoutrrr v0.8.0
|
|
github.com/gliderlabs/ssh v0.3.7
|
|
github.com/goccy/go-json v0.10.3
|
|
github.com/labstack/echo/v5 v5.0.0-20230722203903-ec5b858dab61
|
|
github.com/pocketbase/dbx v1.10.1
|
|
github.com/pocketbase/pocketbase v0.22.20
|
|
github.com/rhysd/go-github-selfupdate v1.2.3
|
|
github.com/shirou/gopsutil/v4 v4.24.8
|
|
github.com/spf13/cobra v1.8.1
|
|
github.com/spf13/viper v1.18.1
|
|
golang.org/x/crypto v0.26.0
|
|
)
|
|
|
|
require (
|
|
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
|
|
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
|
github.com/aws/aws-sdk-go-v2 v1.30.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4 // indirect
|
|
github.com/aws/aws-sdk-go-v2/config v1.27.32 // indirect
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.17.31 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.13 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.17 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.17 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.17 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.17 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.19 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.17 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.22.6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.30.6 // indirect
|
|
github.com/aws/smithy-go v1.20.4 // indirect
|
|
github.com/disintegration/imaging v1.6.2 // indirect
|
|
github.com/domodwyer/mailyak/v3 v3.6.2 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/fatih/color v1.17.0 // indirect
|
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
|
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
|
|
github.com/ganigeorgiev/fexpr v0.4.1 // indirect
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
|
|
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/google/go-github/v30 v30.1.0 // indirect
|
|
github.com/google/go-querystring v1.1.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20240819163618-b1d8f4d146e7 // indirect
|
|
github.com/magiconair/properties v1.8.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mattn/go-sqlite3 v1.14.22 // indirect
|
|
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
|
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
|
github.com/spf13/afero v1.11.0 // indirect
|
|
github.com/spf13/cast v1.7.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
github.com/subosito/gotenv v1.6.0 // indirect
|
|
github.com/tcnksm/go-gitconfig v0.1.2 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.14 // indirect
|
|
github.com/tklauser/numcpus v0.8.0 // indirect
|
|
github.com/ulikunitz/xz v0.5.12 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasttemplate v1.2.2 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
gocloud.dev v0.39.0 // indirect
|
|
golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect
|
|
golang.org/x/image v0.19.0 // indirect
|
|
golang.org/x/net v0.28.0 // indirect
|
|
golang.org/x/oauth2 v0.22.0 // indirect
|
|
golang.org/x/sync v0.8.0 // indirect
|
|
golang.org/x/sys v0.24.0 // indirect
|
|
golang.org/x/term v0.23.0 // indirect
|
|
golang.org/x/text v0.17.0 // indirect
|
|
golang.org/x/time v0.6.0 // indirect
|
|
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
|
|
google.golang.org/api v0.196.0 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
|
|
google.golang.org/grpc v1.66.0 // indirect
|
|
google.golang.org/protobuf v1.34.2 // indirect
|
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
modernc.org/gc/v3 v3.0.0-20240801135723-a856999a2e4a // indirect
|
|
modernc.org/libc v1.60.1 // indirect
|
|
modernc.org/mathutil v1.6.0 // indirect
|
|
modernc.org/memory v1.8.0 // indirect
|
|
modernc.org/sqlite v1.32.0 // indirect
|
|
modernc.org/strutil v1.2.0 // indirect
|
|
modernc.org/token v1.1.0 // indirect
|
|
)
|