Commit graph

1353 commits

Author SHA1 Message Date
Igor Chubin
aec889e65e Add internal/util/files.go 2022-12-11 14:27:46 +01:00
Igor Chubin
53b074af93 Add internal/geo/location/ 2022-12-11 14:27:27 +01:00
Igor Chubin
1bcdd45f34 Add geoloc cache converter 2022-12-11 09:36:11 +01:00
Igor Chubin
1510ce6a88 Add new option: --geo-resolve for geo queries 2022-12-09 21:03:10 +01:00
Igor Chubin
caecca05cf Add Nominatim configuration 2022-12-09 21:02:47 +01:00
Igor Chubin
2ce4c28c34 Add Nominatim queries resolution initial support 2022-12-09 21:02:10 +01:00
Igor Chubin
b8a7991cb6 Switch to GeoIP Cache DB 2022-12-07 20:10:38 +01:00
Igor Chubin
4855adeaf6 Add support for geoip cache db writing 2022-12-06 19:37:57 +01:00
Igor Chubin
a27541a25b Add support for geoip cache db reading 2022-12-06 18:52:26 +01:00
Igor Chubin
4599029329 Ignore local queries in stats 2022-12-06 18:03:24 +01:00
Igor Chubin
307476764a Add internal/util/yaml.go 2022-12-04 21:16:39 +01:00
Igor Chubin
b54ba36643 Add geoip cache converter 2022-12-04 21:16:23 +01:00
Igor Chubin
bcb3667aef Add samonzeweb/godb and mattn/go-sqlite3 to go.mod 2022-12-04 21:15:43 +01:00
Igor Chubin
6c0107bf7a Add temporary support for /:geo-ip-{get,put}
With these queries, the IP resolution cache can be centralized
under the front end server, and its internal format can be changed.
2022-12-04 17:37:22 +01:00
Igor Chubin
9835874422 Update Makefile 2022-12-04 16:56:11 +01:00
Igor Chubin
f9e5e0ecf6 Add github.com/stretchr/testify to go.mod 2022-12-04 16:55:58 +01:00
Igor Chubin
3765dcbfbf Count number of queries with known IPs 2022-12-04 16:55:14 +01:00
Igor Chubin
074b8b6ec8 Add GeoIP info cache access 2022-12-04 16:48:04 +01:00
Igor Chubin
a6f2844c67 Suppress log if needed 2022-12-04 10:35:58 +01:00
Igor Chubin
5d86d36b7e Add config file parsing/dumping 2022-12-03 17:53:50 +01:00
Igor Chubin
2328b29bfe Add CLI parsing 2022-12-03 17:53:28 +01:00
Igor Chubin
fb8f0d248b Move cmd/srv.go to ./ 2022-12-03 16:10:10 +01:00
Igor Chubin
12df32b07c Split rest of srv into packages 2022-12-03 16:08:43 +01:00
Igor Chubin
0d42c23d5b Move stats to a separate package 2022-12-03 15:39:34 +01:00
Igor Chubin
aef41c375e Fix Makefile 2022-12-02 20:10:48 +01:00
Igor Chubin
30c2c85e54 Move global consts to config 2022-12-02 20:10:32 +01:00
Igor Chubin
28f1fd9aae Move global transport to RequestProcessor 2022-12-02 19:47:36 +01:00
Igor Chubin
7b8c6665e8 Move config to separate package 2022-11-29 21:38:39 +01:00
Igor Chubin
f27bf2d5b3 Move routing to separate module 2022-11-29 21:24:53 +01:00
Igor Chubin
ec264850a4 Add /:stats support 2022-11-27 22:16:32 +01:00
Igor Chubin
8fd712f790 Add cmd/route.go 2022-11-27 22:16:19 +01:00
Igor Chubin
762e0fe8f0 Move RequestProcessor to a struct 2022-11-27 15:51:41 +01:00
Igor Chubin
b6687ee037 Add gopkg.in/yaml.v3 to go.mod 2022-11-26 15:40:04 +01:00
Igor Chubin
60e1a3bf68
Merge pull request #809 from evansa/fix-typo
Add missing 'of' in README.md file
2022-11-25 17:43:34 +01:00
Igor Chubin
2c367d0157 Return err from ProcessRequest instead of panic 2022-11-20 17:55:17 +01:00
Igor Chubin
5b240c590e Print PREFETCH only when prefetching 2022-11-20 17:54:42 +01:00
Igor Chubin
d4e96dbf3a Write HTTP errors to log 2022-11-20 17:53:51 +01:00
Igor Chubin
d804310586 Add cmd/logsuppress.go 2022-11-20 17:45:06 +01:00
Igor Chubin
ff4f258f2d Don't redirect if TLS is already in use 2022-11-20 14:00:59 +01:00
Igor Chubin
b2b918637e Use custom servers/timeouts for HTTP/HTTPS 2022-11-20 14:00:37 +01:00
Igor Chubin
bef93212c3 Add https support 2022-11-20 10:03:31 +01:00
Igor Chubin
5bb0c4f1fe Move server config to Config struct 2022-11-19 19:34:11 +01:00
Igor Chubin
7d801e3b4d Fix Makefile 2022-11-19 19:20:44 +01:00
Igor Chubin
a8e8aa7a52 Activate insternal access logging 2022-11-19 19:20:35 +01:00
Igor Chubin
d9afb06ac5 Add cmd/config.go 2022-11-19 19:19:42 +01:00
Igor Chubin
c77c1227d5 Add cmd/log.go 2022-11-19 19:19:25 +01:00
Igor Chubin
87c93f1d06 Add go.* 2022-11-16 17:21:28 +01:00
Igor Chubin
66111b1fdd Add Makefile 2022-11-16 17:21:07 +01:00
Evansa
61d1fa1ca7 Add missing 'of' in README.md file 2022-11-14 16:20:28 +00:00
Igor Chubin
8f433de15a Split proxy access and errors logs 2022-10-26 08:41:20 +02:00