Skip to content
forked from nashiox/fanlin

Fast ANd LIghtweight Natural image processor

License

Notifications You must be signed in to change notification settings

ieee0824/fanlin

 
 

Repository files navigation

fanlin

Circle CI MIT License

English | 日本語

abstract

fanlin is image proxy server in native Go language.

Support

OS

  • Linux (x86 and amd64)
  • OS X

Go Versions

  • go 1.9

Image Format

  • JPEG
  • PNG
  • GIF

go vendoring tool

dep

$ brew install dep 
$ dep ensure

Cross compile for amd64 Linux

go 1.9

$ GOOS=linux GOARCH=amd64 go build github.com/livesense-inc/fanlin/cmd/fanlin

testing

$ go test -cover ./...

configure

On Unix, Linux and OS X, fanlin programs read startup options from the following files, in the specified order(top files are read first, and precedence).

/etc/fanlin.json
/etc/fanlin.cnf
/etc/fanlin.conf
/usr/local/etc/fanlin.json
/usr/local/etc/fanlin.cnf
/usr/local/etc/fanlin.conf
./fanlin.json
./fanlin.cnf
./fanlin.conf
./conf.json
~/.fanlin.json
~/.fanlin.cnf

example

fanlin.json

{
    "port": 8080,
    "max_width": 1000,
    "max_height": 1000,
    "404_img_path": "/path/to/404/image",
    "access_log_path": "/path/to/access/log",
    "error_log_path": "/path/to/error/log",
    "providers": [
        {
            "alias/0" : {
                "type" : "web",
                "src" : "http://aaa.com/bbb"
            }
        },
        {
            "alias/1" : {
                "type" : "web",
                "src" : "https://ccc.com"
            }
        },
        {
            "alias/3" : {
                "type" : "s3",
                "src" : "s3://bucket/path",
                "region" : "ap-northeast-1"
            }
        }
    ]
}

LICENSE

Written in Go and licensed under the MIT License, it can also be used as a library.

About

Fast ANd LIghtweight Natural image processor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%