diff --git a/config.go b/config.go index 2c50253..a47ce86 100644 --- a/config.go +++ b/config.go @@ -40,14 +40,14 @@ func ConfigFromFile(filePath string) (*Config, error) { retval := &Config{ Port: 4711, - LinkPrefix: "https://jaf.example.com/", + LinkPrefix: "https://yaf.example.com/", FileDir: "/var/www/jaf/", LinkLength: 5, ScrubExif: true, ExifAllowedIds: []uint16{}, ExifAllowedPaths: []string{}, ExifAbortOnError: true, - FileExpiration: true, + FileExpiration: false, } scanner := bufio.NewScanner(file) diff --git a/config_test.go b/config_test.go index 29d8464..c2ff350 100644 --- a/config_test.go +++ b/config_test.go @@ -31,8 +31,8 @@ func TestConfigFromFile(t *testing.T) { } assertEqual(config.Port, 4711, t) - assertEqual(config.LinkPrefix, "https://jaf.example.com/", t) - assertEqual(config.FileDir, "/var/www/jaf/", t) + assertEqual(config.LinkPrefix, "https://yaf.example.com/", t) + assertEqual(config.FileDir, "/var/www/yaf/", t) assertEqual(config.LinkLength, 5, t) assertEqual(config.ScrubExif, true, t) assertEqualSlice(config.ExifAllowedIds, []uint16{0x0112, 274}, t) diff --git a/example.conf b/example.conf index c290cec..0f5e6ab 100644 --- a/example.conf +++ b/example.conf @@ -1,7 +1,7 @@ Port: 4711 # a comment -LinkPrefix: https://jaf.example.com/ -FileDir: /var/www/jaf/ +LinkPrefix: https://yaf.example.com/ +FileDir: /var/www/yaf/ LinkLength: 5 ScrubExif: true # Both IDs also refer to the "Orientation" tag, included for illustrative purposes only diff --git a/uploadhandler.go b/uploadhandler.go index 89dfa6b..d2c0be2 100644 --- a/uploadhandler.go +++ b/uploadhandler.go @@ -8,8 +8,8 @@ import ( "net/http" "os" - "github.com/leon-richardt/jaf/exifscrubber" - "github.com/leon-richardt/jaf/extdetect" + "github.com/lyx0/yaf/exifscrubber" + "github.com/lyx0/yaf/extdetect" ) type uploadHandler struct { diff --git a/jaf.go b/yaf.go similarity index 96% rename from jaf.go rename to yaf.go index d3f40a2..9efee92 100644 --- a/jaf.go +++ b/yaf.go @@ -8,7 +8,7 @@ import ( "time" "github.com/julienschmidt/httprouter" - "github.com/leon-richardt/jaf/exifscrubber" + "github.com/lyx0/yaf/exifscrubber" "github.com/lyx0/yaf/fileexpiration" )