feat: add supervisor prototype with embedded frontend
This commit is contained in:
15
internal/config/config.go
Normal file
15
internal/config/config.go
Normal file
@ -0,0 +1,15 @@
|
||||
package config
|
||||
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
Addr string
|
||||
}
|
||||
|
||||
func Load() Config {
|
||||
addr := os.Getenv("SUPERVISOR_ADDR")
|
||||
if addr == "" {
|
||||
addr = ":8080"
|
||||
}
|
||||
return Config{Addr: addr}
|
||||
}
|
||||
Reference in New Issue
Block a user