Skip to content

kenshinx/joke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joke

The web console for godns

Running

Developement

$ go get github.com/kenshinx/joke
$ go get github.com/astaxie/bee

$ cd $GOPATH/src/github.com/kenshinx/joke

$ bee run joke

http://127.0.0.1:1223

Productive

Compile first

$ go get github.com/kenshinx/joke
$ cd $GOPATH/src/github.com/kenshinx/joke
$ go build

Deploy strongly suggest supervisord.


[program:joke]
command=/var/joke/joke
autostart=true
autorestart=true
user=joke
directory=/var/joke
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 20
stdout_logfile = /var/log/joke.log

Configuration

conf/app.conf

Override the default location with the -c flag : joke -c path/to/config.


#[joke]
appname = Joke
httpaddr = "127.0.0.1"
httpport = 1223
runmode = "dev"
autorender = false
autorecover = true
viewspath = "views"


#[auth]
#username:password.
#basic_auth = "joke:hello"


#[redis]
redisaddr = "127.0.0.1:6379"
redisdb = 0
redispassword = ""
bindkey = "godns:hosts"



#[log]
stdout = true
logfile = "logs/joke.log"
logrorate = true


Auth

Support http basic auth

Screenshot

http://127.0.0.1:1223

joke

Dependence

About

The web console for godns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published