switch between amarula and a-ads

This commit is contained in:
2020-05-24 14:23:03 +02:00
parent a6c7999448
commit f881e8fc8f
5 changed files with 58 additions and 46 deletions

View File

@@ -1,7 +1,9 @@
package init
import (
"math/rand"
"os"
"time"
"fornaxian.com/pixeldrain-web/webcontroller"
"github.com/Fornaxian/config"
@@ -34,6 +36,9 @@ maintenance_mode = false
func Init(r *httprouter.Router, prefix string, setLogLevel bool) {
log.Info("Starting web UI server (PID %v)", os.Getpid())
// Seed the RNG
rand.Seed(time.Now().UnixNano())
var webconf = &PixelWebConfig{}
var _, err = config.New(
DefaultConfig,