Commit 9811ec5f authored by zdc's avatar zdc

added extras, change log output format

* added example: systemd unit file
* added example: nginx config file
parent 98dee1e9
upstream lookis_server {
server fail_timeout=0;
server {
listen 80;
server_name lookis.domain;
location / {
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://lookis_server;
Description=lookis looking glass
ExecStart=/opt/lookis/lookis -data=/opt/lookis
ExecStop=/usr/bin/killall lookis
......@@ -21,7 +21,7 @@ type DataOut struct {
// fill error details
func PrepareError (HeaderRaw, BodyRaw string) DataOut {
log.Print("\nError: ", HeaderRaw, "\nDetails: ", BodyRaw)
log.Printf("Error! %s: \"%s\"", HeaderRaw, BodyRaw)
output := DataOut{ OutputHeader: HeaderRaw, OutputBody: BodyRaw }
return output
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment