Skip to content

Commit

Permalink
Merge pull request #83 from centrifugal/admin_websocket
Browse files Browse the repository at this point in the history
Admin websocket refactoring
  • Loading branch information
FZambia committed Mar 24, 2016
2 parents cf5a53e + 21e869a commit 633967d
Show file tree
Hide file tree
Showing 16 changed files with 52,982 additions and 485 deletions.
63 changes: 20 additions & 43 deletions bindata.go

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ func newConfig() *libcentrifugo.Config {
cfg.Version = VERSION
cfg.Name = getApplicationName()
cfg.Debug = viper.GetBool("debug")
cfg.Admin = viper.GetBool("admin") || viper.GetBool("web")
cfg.Web = viper.GetBool("web")
cfg.WebPassword = viper.GetString("web_password")
cfg.WebSecret = viper.GetString("web_secret")
cfg.AdminPassword = viper.GetString("admin_password")
cfg.AdminSecret = viper.GetString("admin_secret")
cfg.ChannelPrefix = viper.GetString("channel_prefix")
cfg.AdminChannel = libcentrifugo.ChannelID(cfg.ChannelPrefix + "." + "admin")
cfg.ControlChannel = libcentrifugo.ChannelID(cfg.ChannelPrefix + "." + "control")
Expand All @@ -50,7 +51,7 @@ func newConfig() *libcentrifugo.Config {
cfg.ClientChannelLimit = viper.GetInt("client_channel_limit")
cfg.Insecure = viper.GetBool("insecure")
cfg.InsecureAPI = viper.GetBool("insecure_api")
cfg.InsecureWeb = viper.GetBool("insecure_web")
cfg.InsecureAdmin = viper.GetBool("insecure_admin") || viper.GetBool("insecure_web")

cfg.Secret = viper.GetString("secret")
cfg.ConnLifetime = int64(viper.GetInt("connection_lifetime"))
Expand Down
2 changes: 1 addition & 1 deletion extras/web/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Centrifugal web</title>
<title>Centrifugo</title>
<meta charset=utf-8>
<meta name=description content="Web interface for Centrifugal server">
<link rel="shortcut icon" href="public/images/favicon.ico" type="image/x-icon">
Expand Down
Loading

0 comments on commit 633967d

Please sign in to comment.