| 1 |
From: Arnaud Rebillout <[email protected]> |
| 2 |
Date: Wed, 14 Jun 2023 15:24:05 +0700 |
| 3 |
Subject: Adjust mirrorbits.conf for Debian |
| 4 |
|
| 5 |
- Default templates path |
| 6 |
- Default GeoIP database location |
| 7 |
|
| 8 |
Forwarded: not-needed, Debian-specific |
| 9 |
--- |
| 10 |
config/config.go | 2 +- |
| 11 |
mirrorbits.conf | 4 ++-- |
| 12 |
2 files changed, 3 insertions(+), 3 deletions(-) |
| 13 |
|
| 14 |
diff --git a/config/config.go b/config/config.go |
| 15 |
index cc21fe7..b575137 100644 |
| 16 |
--- a/config/config.go |
| 17 |
+++ b/config/config.go |
| 18 |
@@ -42,7 +42,7 @@ func defaultConfig() Configuration { |
| 19 |
RedisDB: 0, |
| 20 |
LogDir: "", |
| 21 |
TraceFileLocation: "", |
| 22 |
- GeoipDatabasePath: "/usr/share/GeoIP/", |
| 23 |
+ GeoipDatabasePath: "/var/lib/GeoIP/", |
| 24 |
GeographicalSort: true, |
| 25 |
ConcurrentSync: 5, |
| 26 |
ScanInterval: 30, |
| 27 |
diff --git a/mirrorbits.conf b/mirrorbits.conf |
| 28 |
index e373ebd..1d223f4 100644 |
| 29 |
--- a/mirrorbits.conf |
| 30 |
+++ b/mirrorbits.conf |
| 31 |
@@ -8,7 +8,7 @@ |
| 32 |
# Repository: /srv/repo |
| 33 |
|
| 34 |
## Path to the templates (default autodetect) |
| 35 |
-# Templates: /usr/share/mirrorbits/ |
| 36 |
+# Templates: /usr/share/mirrorbits/templates/ |
| 37 |
|
| 38 |
## A local path or URL containing the JavaScript used by the templates. |
| 39 |
## If this is not set (the default), the JavaScript will just be loaded |
| 40 |
@@ -19,7 +19,7 @@ |
| 41 |
# LogDir: /var/log/mirrorbits |
| 42 |
|
| 43 |
## Path to the GeoIP2 mmdb databases |
| 44 |
-# GeoipDatabasePath: /usr/share/GeoIP/ |
| 45 |
+# GeoipDatabasePath: /var/lib/GeoIP/ |
| 46 |
|
| 47 |
## OutputMode can take on the three values: |
| 48 |
## - redirect: HTTP redirect to the destination file on the selected mirror |