Commit Graph

26 Commits

Author SHA1 Message Date
7c70abf07f
Add feature to get the right client port when using a trusted proxy 2022-05-02 17:56:57 +02:00
9070e9a2c2
Use Accept request header instead of user agent to figure out non-browser clients. Funny fact, I borrowed the idea from a fork ('8a3e142cf3/router/generic.go (L33)') 2022-04-30 17:35:12 +02:00
12da27ddab
Add optional secure headers to responses 2022-04-02 18:12:31 +02:00
aae2e08240
Bump maxminddb-golang to 1.9.0 2022-04-02 18:07:12 +02:00
e4667bda05
Remove timestamp snapshot from log when releasing 2022-03-19 19:08:02 +01:00
49b28b6536
Update golangci-lint and shadow 2022-03-19 19:02:41 +01:00
edd0713c21
Update modules and bump go version to 1.18 2022-03-19 18:59:15 +01:00
ab46275990
Tidy up the house 2022-01-27 13:17:51 +01:00
f7d0a679c9
Add test for geo model 2021-12-01 18:09:13 +01:00
ac32dc240f
Add release badge to README 2021-12-01 13:18:32 +01:00
2d330a99b7
Add CI and go-report badges. Add comments to make golint happy 2021-11-30 17:49:02 +01:00
9b10052cd1
refactor on some tests 2021-11-30 16:32:52 +01:00
def2b0f2f0
Update Gin and testcontainers to latest version 2021-11-30 16:07:31 +01:00
8b5cccd744
Refactor setting module and add tests (#4) 2021-11-29 18:16:27 +01:00
2571e22843
Fix format errors and add gofmt and golines to Makefile 2021-11-21 18:23:36 +01:00
2807e2afc9
Improve client port handling and fix IPv6 client port testing 2021-11-21 12:49:13 +01:00
pando85
1aa59f1b0b
Fix long lines (#2)
Using [golines](https://github.com/segmentio/golines):
`golines -w .`
2021-11-18 19:26:53 +01:00
126ae833b5
Fix LICENSE file, a tgz instead of text plain was commited by mistake 2021-11-18 13:04:38 +01:00
97b3245278
Enable automatic releases 2021-11-17 17:01:29 +01:00
7bc95f98c8
Add -s -w flags when building to omit the symbol table, debug information and the DWARF table 2021-11-16 19:10:19 +01:00
66f3436371
Add github releases 2021-11-16 19:10:01 +01:00
7d2209d390
Fix workflow when pushing artifact to Dockerhub 2021-11-12 19:01:19 +01:00
255660374f
Update README.md 2021-11-11 18:30:50 +01:00
36f82eb6a7
Add github workflow (#1)
* Add github workflow
2021-11-11 17:09:05 +01:00
c0d1143de6
Fix Makefile 2021-11-10 20:27:02 +01:00
2fcfa91545
first commit 2021-11-10 20:06:12 +01:00