fix naming inconsistencies. jaf -> yaf

This commit is contained in:
lyx0 2023-09-04 18:16:09 +02:00
parent f827f59650
commit 293a47e7b0
5 changed files with 9 additions and 9 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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

View file

@ -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 {

View file

@ -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"
)