Commit graph

136 commits

Author SHA1 Message Date
Alexander Neumann
a628c4e01a Fix directory traversal
This commit introduces the strict checks from net/http.Dir, which fixes
a directory traversal issue.

Closes #22
2017-07-30 17:37:45 +02:00
Zlatko Čalušić
9a6bb5eebe Update README.md
Document restic v0.7.1 as the required version to run with Rest Server.

Closes #11
2017-07-22 12:32:05 +02:00
Zlatko Čalušić
cae51e1478 Update dependencies 2017-07-19 22:18:06 +02:00
Zlatko Čalušić
0e5f662fed Switch to dep dependency management tool 2017-07-19 22:12:34 +02:00
Alexander Neumann
96cdf7b3b4 Add port publish to docker instructions
Closes #19
2017-07-03 19:52:17 +02:00
Zlatko Čalušić
b2e4715d1b Version 0.9.3 2017-06-29 00:01:23 +02:00
Zlatko Čalušić
4873fd9ffe Update dependencies 2017-06-25 12:06:41 +02:00
Zlatko Čalušić
0c22253d41 Update README.md 2017-06-25 12:04:48 +02:00
Alexander Neumann
90b868dfbc build.go: Fix path for new cmd/ subdir 2017-06-25 11:48:02 +02:00
Matthew Holt
65152c7bf5 Move main function into separate package (closes #12) 2017-06-25 11:48:02 +02:00
Bruno Clermont
07b6d5facf add docker image 2017-06-22 21:17:17 +02:00
Zlatko Čalušić
6b821132ec Travis can't determine latest versions of Go 2017-06-09 00:10:45 +02:00
Zlatko Čalušić
99eb5a4682 Update .travis.yml 2017-06-05 20:57:17 +02:00
Zlatko Čalušić
d54a589176 README.md: document why and when to use rest-server 2017-06-04 12:10:11 +02:00
Zlatko Čalušić
907801c8b9 Update dependencies 2017-06-02 10:27:10 +02:00
Zlatko Čalušić
5401014105 Version 0.9.2 2017-06-02 09:51:45 +02:00
Zlatko Čalušić
267f5d330a build.go: Use Go log package instead of custom die() implementation 2017-06-02 09:26:02 +02:00
Zlatko Čalušić
e591a330e5 build.go: Update for rest-server 2017-06-02 09:04:27 +02:00
Zlatko Čalušić
fbac61c6cb build.go: Strip temporary path, allow reproducible builds
de48a5ac9c
2017-06-02 08:56:08 +02:00
Zlatko Čalušić
ba98452c5e build.go: Add --enable-cgo
c49da4c6f7
2017-06-02 08:55:27 +02:00
Zlatko Čalušić
3122bd76ed build.go: Fix ineffassign mistakes
971ecee171
2017-06-02 08:54:30 +02:00
Zlatko Čalušić
fd9e42ed71 build.go: Also copy header files
e6ca604d24
2017-06-02 08:53:31 +02:00
Zlatko Čalušić
4bc2581b47 Check version in build.go
Print a sensible error for Go < 1.7 (the "context" package is missing there)

f8dd5d5088
2017-06-02 08:52:04 +02:00
Zlatko Čalušić
a029785c73 build.go: Make binaries completely static (disables cgo)
7e0a4c66e7
2017-06-02 08:50:28 +02:00
Zlatko Čalušić
0ee5921e04 build.go: Allow setting the output file name
62b1056860
2017-06-02 08:49:50 +02:00
Zlatko Čalušić
2a4c1d221a Document restic v0.6.1 as required version to use with rest-server 2017-06-02 08:25:11 +02:00
Zlatko Čalušić
997e8f4979 Update glide.yaml 2017-05-31 23:47:07 +02:00
Zlatko Čalušić
c7ffc41a65 Add support for logging HTTP requests in the combined log format 2017-05-31 23:45:16 +02:00
Zlatko Čalušić
ed59c2ec28 Update dependencies 2017-05-31 22:23:46 +02:00
Zlatko Čalušić
954686ce66 Update README.md 2017-05-30 00:44:39 +02:00
Zlatko Čalušić
cbc1941008 Update .travis.yml 2017-05-29 09:30:54 +02:00
Zlatko Čalušić
c74938fac6 Version 0.9.1 2017-05-01 20:17:15 +02:00
Zlatko Čalušić
489391646d Refactor createDirectories(), improve error handling 2017-05-01 20:10:46 +02:00
Zlatko Čalušić
e93bc32c78 Remove legacy code 2017-05-01 20:02:27 +02:00
Zlatko Čalušić
e2a4dd5dab Handler cleanup 2017-05-01 20:01:52 +02:00
Zlatko Čalušić
661e66849b Update .travis.yml 2017-05-01 19:16:36 +02:00
Zlatko Čalušić
77088473f0 Update README.md 2017-05-01 19:13:03 +02:00
Zlatko Čalušić
ed8b484766 Add missing route to CreateRepo() 2017-04-01 10:20:06 +02:00
Alexander Neumann
84cabc7880 Make rest-server compatible (#8)
* Allow deleting config files
* Directly write to target files, with O_EXCL
2017-03-18 13:11:29 +01:00
Zlatko Čalušić
a7197e7778 Update .travis.yml 2017-02-17 17:15:20 +01:00
Zlatko Čalušić
be82bc7a5e Remove local copy of REST_backend.md document 2017-02-02 11:34:15 +01:00
Zlatko Čalušić
919add5012 Implement POST /path?create=true for explicit repository creation
Legacy code which created repo on first "POST /keys/foo" remains, so
restic clients <= v0.3.3 continue working.
2017-01-27 20:45:53 +01:00
Zlatko Čalušić
2c90434911 Add debug output for HTTP error cases 2017-01-16 23:39:56 +01:00
Zlatko Čalušić
4d04351ac9 Report data directory on startup 2017-01-16 23:19:51 +01:00
Zlatko Čalušić
20f167f7b4 Refactor main() a bit 2017-01-16 23:15:16 +01:00
Zlatko Čalušić
c1ace4c9d9 Don't shadow config struct 2017-01-16 23:01:08 +01:00
Zlatko Čalušić
ff5fbf34e1 Update README.md 2017-01-04 00:21:02 +01:00
Zlatko Čalušić
87ebe10300 Update to cobra style flags 2016-12-30 23:26:15 +01:00
Zlatko Čalušić
f775e15484 Update LICENSE 2016-12-30 22:43:22 +01:00
Zlatko Čalušić
130b202fdb Update README.md 2016-12-30 22:40:11 +01:00