mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
refactor: replace upgrader with version package for runtime and release information
This commit is contained in:
parent
8e212ae79b
commit
d0cf93d5e3
11 changed files with 182 additions and 121 deletions
11
internal/helper/docker.go
Normal file
11
internal/helper/docker.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package helper
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
|
||||
func InNginxUIOfficialDocker() bool {
|
||||
return cast.ToBool(os.Getenv("NGINX_UI_OFFICIAL_DOCKER"))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue