Daniel
77b5fda6fb
README: Add example 'ip' in example API config.
...
`acme-dns` supports binding the API to a specific interface instead of
all interfaces by providing an `ip` address in the `[api]` configuration
section. Prior to this commit the `ip` field wasn't shown in the example
configuration in the README. This commit adds an example showing how to
configure `acme-dns` to listen only on `127.0.0.1` to the example config
and describes what the default value (`""`) does.
2018-02-27 21:45:13 -05:00
Daniel
efdd560ee4
API: Differentiate bad TXT update error.
...
Previous to this commit, if the update message had a valid subdomain but
an invalid TXT the error returned was for a bad subdomain. This can
confuse developers who were POSTing junk TXT records to test acme-dns
:-)
This commit adjusts the `webUpdatePost` error handling such that
`!validSubdomain(input)` and `!validTXT(input)` give distinct errors.
The `!validSubdomain` case should never happen in `webUpdatePost`
because `auth.go`'s `Auth` function already vets the post data
subdomain but I retained the error handling code just in case.
Unit tests for an update with an invalid subdomain and an update with an
invalid TXT are included.
2018-02-27 19:26:15 -05:00
Joona Hoikkala
830cceb62c
Release v0.3.2 ( #40 )
2018-02-01 16:10:24 +02:00
Leon Kyneur
9f896759f0
reinstall ca-certificates ( #39 )
2018-02-01 16:02:06 +02:00
Joona Hoikkala
476f6fc555
Only autobuild for linux, as sqlite needs cgo ( #38 )
2018-02-01 15:33:57 +02:00
Joona Hoikkala
e2e84ede6b
Goreleaser config ( #37 )
2018-02-01 14:20:40 +02:00
Joona Hoikkala
562d7cbad4
Make autocert use HTTP-01 challenge instead of TLS-SNI ( #36 )
2018-02-01 10:53:34 +02:00
Joona Hoikkala
5470ba7a41
Remove unused variable and prepare for v0.2 ( #22 )
...
* Remove unused variable and prepare for v0.2
* Added new changes to changelog and feature list
* Modified changelog
2018-01-22 12:47:26 +02:00
Joona Hoikkala
665455d319
Docker instructions and configuration ( #33 )
...
* Added dockerfile
* Docker configuration
* Added Docker images, composer configuration and documentation
2018-01-22 12:35:07 +02:00
Joona Hoikkala
c5337fc841
Update dependencies ( #32 )
2018-01-22 11:19:33 +02:00
Joona Hoikkala
733245fb3d
Support for multiple TXT records per subdomain ( #29 )
...
* Support for multiple TXT records per subdomain and database upgrade functionality
* Linter fixes
* Make sure the database upgrade routine works for PostgreSQL
* Move subdomain query outside of the upgrade transaction
2018-01-22 09:53:07 +02:00
Joona Hoikkala
ba695134ce
Make cors messages respect the debug flag ( #25 )
2017-11-15 21:35:35 +02:00
Joona Hoikkala
b0cd264c71
Fail on malformed JSON payloads in register endpoint ( #24 )
2017-11-15 13:52:27 +02:00
Joona Hoikkala
02d42bff30
Removed unnecessary body check ( #21 )
2017-11-15 01:39:00 +02:00
Joona Hoikkala
fd9ce4606d
Get rid of Iris and use julienschmidt/httprouter instead ( #20 )
...
* Replace iris with httprouter
* Linter fixes
* Finalize iris removal
* Vendor dependencies for reproducable builds
* Api tests are back
2017-11-14 23:54:29 +02:00
Koen Vlaswinkel
93871a7cec
Fix config not being used ( #19 )
2017-11-14 13:01:46 +02:00
Joona Hoikkala
9c54da3ee6
Try to read config from under /etc ( #18 )
2017-11-14 00:42:30 +02:00
Joona Hoikkala
9c639223ce
Added dep vendoring ( #17 )
2017-11-12 23:57:45 +02:00
Joona Hoikkala
c70a6cffb0
Go 1.9 and Iris v8, added possibility to bind to IP ( #15 )
2017-11-12 23:40:15 +02:00
Daniel McCarney
0ec12dbc5f
Update README json examples. ( #12 )
...
This commit fixes the JSON examples in the README. There was a missing
`]` in the example input, a missing IP range in the reflected output,
and a few trailing `,` that shouldn't have been there.
2017-09-01 09:37:22 +03:00
Joona Hoikkala
41b2ff5940
Use iris v6 and Go 1.8+ ( #10 )
...
* Quick fixes to bring framework up to date
* Script for test running, api tests need complete rewrite
* Removed govendor from tests
* Fix for AutoTLS
2017-08-02 19:25:27 +03:00
Joona Hoikkala
2bfeedda4c
Fixed iris version to v5 api ( #9 )
2017-01-30 12:19:22 +02:00
Joona Hoikkala
872e2b7c6f
Service offline
2017-01-30 09:32:01 +02:00
Joona Hoikkala
220ef6d3c0
Merge pull request #7 from joohoi/release-0.1
...
Release 0.1
2016-12-05 00:43:10 +02:00
Joona Hoikkala
33bea973dc
Release 0.1
2016-12-05 00:35:51 +02:00
Joona Hoikkala
d156937bc5
Merge pull request #4 from joohoi/cidr-range
...
Implement possibility to provide a list of CIDR ranges to limit update request origins
2016-12-04 23:16:51 +02:00
Joona Hoikkala
87d6e03c53
Merge pull request #5 from sjtoik/cidr-range
...
Comma tuning and added ipv6 example to JSON structure.
2016-12-04 21:29:46 +02:00
Santeri Toikka
174cf59fcc
Fixed ipv6 mask.
2016-12-04 19:17:31 +02:00
Joona Hoikkala
adf3fb85af
Merge remote-tracking branch 'origin/master' into cidr-range
2016-12-04 15:20:56 +02:00
Joona Hoikkala
e72396d8f6
Merge pull request #6 from joohoi/coverfix
...
goveralls fixes to get meaninful stats out of coveralls.io
2016-12-04 15:09:20 +02:00
Joona Hoikkala
370a98d31b
Merge remote-tracking branch 'origin/master' into coverfix
2016-12-04 14:55:37 +02:00
Joona Hoikkala
5270d401e1
goveralls fixes to get meaninful stats out of coveralls.io
2016-12-04 14:49:50 +02:00
Joona Hoikkala
8ddb845ca5
Added IPv6 testcases
2016-12-04 14:19:17 +02:00
Santeri Toikka
7510368a46
Comma tuning and added ipv6 example to JSON structure.
2016-12-03 19:36:46 +02:00
Joona Hoikkala
ad4decb0bb
Added new video with the new API
2016-12-03 15:44:50 +02:00
Joona Hoikkala
8d0b08229d
Readme changes
2016-12-03 11:33:43 +02:00
Joona Hoikkala
cb050c2c92
Modified returned JSON structure
2016-12-03 10:31:15 +02:00
Joona Hoikkala
8b3d3f809f
Merge remote-tracking branch 'origin/master' into cidr-range
2016-12-03 08:37:29 +02:00
Joona Hoikkala
340b6a6892
Merge pull request #3 from sjtoik/master
...
Updates to instructions.
2016-12-02 18:32:30 +02:00
Santeri Toikka
b269777304
Documentation updates to config file.
2016-12-02 18:14:02 +02:00
Santeri Toikka
ef64560fe5
Elevated modifications.
2016-12-02 17:48:36 +02:00
Santeri Toikka
77729447d4
Corrections to spelling and structure based on the discussions.
2016-12-02 17:44:58 +02:00
Joona Hoikkala
bf9eaf2f32
Added config option to check for a header value for clinet IP
2016-12-02 17:04:16 +02:00
Joona Hoikkala
8c99346b01
Remove old commented out code
2016-12-02 16:26:31 +02:00
Joona Hoikkala
5f68d84ca5
Removed register GET request in favor of POST, and did required HTTP api changes
2016-12-02 15:42:10 +02:00
Joona Hoikkala
c3ac7a211c
DB code for CIDR handling
2016-12-01 00:03:08 +02:00
Santeri Toikka
70f45b374a
Updates to instructions.
2016-11-30 08:26:46 +02:00
Joona Hoikkala
8ffed7a3d7
Merge pull request #2 from joohoi/extend-db
...
Extend the database for a upcoming feature before release
2016-11-29 15:42:15 +02:00
Joona Hoikkala
353a488f01
Extend the database for a upcoming feature before release
2016-11-29 15:35:46 +02:00
Joona Hoikkala
a5e95a6044
Update README.md
2016-11-29 12:48:36 +02:00