summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-15fix blank gateway arrayHEADmasterkali kaneko (leap communications)
i really should start asking someone for code reviews, or committing only after a coffee. this yolo attitude is no good for anyone. this was a silly typo on db98de9. I guess I write write err != nil too much...
2022-02-15fix nonsensekali kaneko (leap communications)
2022-02-13lowercase insecure_apikali kaneko (leap communications)
2022-02-13add log for json errorkali kaneko (leap communications)
2022-02-13make http api endpoint optionalkali kaneko (leap communications)
2022-01-20fail gracefully if error getting the ip recordkali kaneko (leap communications)
2021-12-03nocache /kali kaneko (leap communications)
2021-11-16use logkali kaneko (leap communications)
2021-11-10add ref to MENSHEN_API in helpkali kaneko (leap communications)
2021-11-09skip curl check for nowkali kaneko (leap communications)
2021-11-09allow to set api via env varkali kaneko (leap communications)
2021-11-09fix ci stagekali kaneko (leap communications)
2021-11-09[feat] make api configurablekali kaneko (leap communications)
2021-10-26[ci] add live service test for riseupkali kaneko (leap communications)
2021-09-21add timeoutskali kaneko (leap communications)
see https://ieftimov.com/post/make-resilient-golang-net-http-servers-using-timeouts-deadlines-context-cancellation/
2021-09-03use bullseyekali kaneko (leap communications)
go in buster is < 1.12, which was needed by prometheus client. - Resolves: #16
2021-02-25format fix for link1.0kali kaneko (leap communications)
2021-02-25[docs] explain tool namekali kaneko (leap communications)
2021-02-25Remove the debian folderRuben Pollan
2021-02-25Use go modules & and devendorizeRuben Pollan
spring clean for menshen!
2021-02-11Rename the project to menshenRuben Pollan
- Closes: #4
2020-10-18better handle spaceskali kaneko (leap communications)
2020-04-12Merge branch 'feat/no-cache' into 'master'micah
[feat] nocache See merge request leap/getmyip!6
2020-04-11[feat] nocachekali kaneko (leap communications)
2020-03-30Merge branch 'remove-geoipdb-update' into 'master'micah
Remove geoipupdate from container See merge request leap/getmyip!5
2020-03-30[pkg] Remove geoipupdate from containerkali kaneko (leap communications)
2020-03-26[feat] add prometheus metrics for countrykali kaneko (leap communications)
2020-03-26[CI] Replace the kaniko build method with the included gitlab-ci.ymlMicah Anderson
The kaniko build method exposes various failures that are strange and unrelated to the code. We decided to switch back to Docker-in-Docker builds, until upstream has resolved these issues.
2019-12-11[deb] arch is any, not allKali Kaneko (leap communications)
2019-12-10[deb] fix upstream urlKali Kaneko (leap communications)
2019-12-10randomize gws on same location, and allow to forbidKali Kaneko (leap communications)
2019-10-17[docker] getmyip service isn't a forking serviceMicah Anderson
2019-10-17[docker] Switch to using chaperone for initMicah Anderson
This will allow us to setup a cronjob that will once per night download the geoipdb update.
2019-10-17[pkg] Fix up multi-stage DockerfileMicah Anderson
. Stop installing geoipupdate in first stage . Remove apt package lists when finished to reduce size . Remove bash tricks done for reducing layer sizes, they are removed due to multi-stage . Replace RUN mkdir with WORKDIR . Install ca-certificatges in second stage, as its needed to authenticate the remote server the geoip database is pulled from . Switch to RUN cp for the GEOIP.conf.default . Run geoipupdate in second stage to seed the database, without it, getmyip will fail to start
2019-10-16Make sure that geoipupdate is installed in final build stageMicah Anderson
2019-10-16Entrypoint flags need to be specified by commasMicah Anderson
2019-10-10Merge branch 'dockerfile' into 'master'micah
Add Dockerfile and .gitlab-ci.yaml See merge request leap/getmyip!1
2019-10-10Add Dockerfile and .gitlab-ci.yamlmicah
2018-12-19[feat] add TLSKali Kaneko (leap communications)
2018-12-13gofmtKali Kaneko (leap communications)
2018-12-13return sorted list of gw hostsKali Kaneko (leap communications)
2018-12-13initial debianizationKali Kaneko (leap communications)
2018-12-13vendor packagesKali Kaneko (leap communications)
2018-12-13add license informationkali kaneko
2018-12-13refactor for readabilityKali Kaneko
2018-12-13geolocate gateways and kd-treeKali Kaneko
during initialization, we fetch the eip-config.json file from the configured provider. we geolocate the gateways (using a golang package that has some cities missing, hence the workaround) and initialize a KD-Tree with the gateways. using the KD-Tree, it is very cheap to calculate the nearest gateway for every request, which is provider as a filed in the json to the client - as a suggestion to be used or not in the gateway selection process.
2018-12-11add descriptionkali kaneko
2018-12-11formattingkali kaneko
2018-12-11rename readmekali kaneko
2018-12-11add usage to readmekali kaneko