diff --git a/app/migrator/backup.go b/app/migrator/backup.go index c0fcff59..6d811691 100644 --- a/app/migrator/backup.go +++ b/app/migrator/backup.go @@ -25,9 +25,9 @@ type AutoBackup struct { // Do runs daily export to local files, keeps up to keepMax backups for given siteID func (ab AutoBackup) Do(ctx context.Context) { - log.Printf("[INFO] activate auto-backup for %s", ab.BackupLocation) + log.Printf("[INFO] activate auto-backup for %s under %s, duration %s", ab.SiteID, ab.BackupLocation, ab.Duration) tick := time.NewTicker(ab.Duration) - log.Printf("[DEBUG] first backup at %s", time.Now().Add(ab.Duration)) + log.Printf("[DEBUG] first backup for %s at %s", ab.SiteID, time.Now().Add(ab.Duration)) for { select { @@ -37,7 +37,7 @@ func (ab AutoBackup) Do(ctx context.Context) { continue } ab.removeOldBackupFiles() - log.Printf("[DEBUG] next backup at %s", time.Now().Add(ab.Duration)) + log.Printf("[DEBUG] next backup for %s at %s", ab.SiteID, time.Now().Add(ab.Duration)) case <-ctx.Done(): log.Printf("[WARN] terminated autobackup for %s", ab.SiteID) return diff --git a/app/rest/api/rest.go b/app/rest/api/rest.go index 1da98274..43e56c0c 100644 --- a/app/rest/api/rest.go +++ b/app/rest/api/rest.go @@ -166,7 +166,7 @@ func (s *Rest) routes() chi.Router { router.With(tollbooth_chi.LimitHandler(tollbooth.NewLimiter(50, nil))). Get("/robots.txt", func(w http.ResponseWriter, r *http.Request) { - allowed := []string{"/find", "/last", "/id", "/count", "/counts", "/list", "/config", "/img"} + allowed := []string{"/find", "/last", "/id", "/count", "/counts", "/list", "/config", "/img", "/avatar"} for i := range allowed { allowed[i] = "Allow: /api/v1" + allowed[i] }