Commit Graph

33 Commits

Author SHA1 Message Date
Daniel Carrillo 6b7fc0bc6a Bump gin and testify to latest versions 1.0.10 2022-07-03 11:39:51 +02:00
dcarrillo c5a659ff64 Create codeql-analysis.yml 2022-07-03 11:29:23 +02:00
dcarrillo bd06da7b2b Bump gin-gonic to 1.8.0 1.0.9 2022-06-03 18:37:22 +02:00
dcarrillo b61d64a755 Moving secure again, this time to github.com/gin-contrib/secure 2022-05-07 15:56:21 +02:00
dcarrillo 3df794ecc4 Bump testcontainers-go tp 0.13.0 2022-05-07 13:06:19 +02:00
dcarrillo ca1d002974 Use gin-gonic/contrib/secure instead of deprecated module 2022-05-07 12:51:13 +02:00
dcarrillo 1ee7256506 Remove headers set by a trusted proxy from outputs 1.0.8 2022-05-02 18:07:40 +02:00
dcarrillo 7c70abf07f Add feature to get the right client port when using a trusted proxy 2022-05-02 17:56:57 +02:00
dcarrillo 9070e9a2c2 Use Accept request header instead of user agent to figure out non-browser clients. Funny fact, I borrowed the idea from a fork ('https://github.com/hachmeister/whatismyip/blob/8a3e142cf3ebf54ed3a4b6de2173cc5b13b40e18/router/generic.go#L33') 1.0.7 2022-04-30 17:35:12 +02:00
dcarrillo 12da27ddab Add optional secure headers to responses 1.0.6 2022-04-02 18:12:31 +02:00
dcarrillo aae2e08240 Bump maxminddb-golang to 1.9.0 2022-04-02 18:07:12 +02:00
dcarrillo e4667bda05 Remove timestamp snapshot from log when releasing 1.0.5 2022-03-19 19:08:02 +01:00
dcarrillo 49b28b6536 Update golangci-lint and shadow 2022-03-19 19:02:41 +01:00
dcarrillo edd0713c21 Update modules and bump go version to 1.18 2022-03-19 18:59:15 +01:00
dcarrillo ab46275990 Tidy up the house 1.0.4 2022-01-27 13:17:51 +01:00
dcarrillo f7d0a679c9 Add test for geo model 2021-12-01 18:09:13 +01:00
dcarrillo ac32dc240f Add release badge to README 2021-12-01 13:18:32 +01:00
dcarrillo 2d330a99b7 Add CI and go-report badges. Add comments to make golint happy 2021-11-30 17:49:02 +01:00
dcarrillo 9b10052cd1 refactor on some tests 2021-11-30 16:32:52 +01:00
dcarrillo def2b0f2f0 Update Gin and testcontainers to latest version 2021-11-30 16:07:31 +01:00
dcarrillo 8b5cccd744 Refactor setting module and add tests (#4) 1.0.3 2021-11-29 18:16:27 +01:00
dcarrillo 2571e22843 Fix format errors and add gofmt and golines to Makefile 2021-11-21 18:23:36 +01:00
dcarrillo 2807e2afc9 Improve client port handling and fix IPv6 client port testing 1.0.2 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
dcarrillo 126ae833b5 Fix LICENSE file, a tgz instead of text plain was commited by mistake 1.0.1 2021-11-18 13:04:38 +01:00
dcarrillo 97b3245278 Enable automatic releases 2021-11-17 17:01:29 +01:00
dcarrillo 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
dcarrillo 66f3436371 Add github releases 2021-11-16 19:10:01 +01:00
dcarrillo 7d2209d390 Fix workflow when pushing artifact to Dockerhub 2021-11-12 19:01:19 +01:00
dcarrillo 255660374f Update README.md 2021-11-11 18:30:50 +01:00
dcarrillo 36f82eb6a7 Add github workflow (#1)
* Add github workflow
2021-11-11 17:09:05 +01:00
dcarrillo c0d1143de6 Fix Makefile 2021-11-10 20:27:02 +01:00
dcarrillo 2fcfa91545 first commit 1.0.0 2021-11-10 20:06:12 +01:00