Commit graph

68 commits

Author SHA1 Message Date
Andrea Spacca
95c7e675a0 fix http-auth-ip-whitelist 2023-12-04 14:36:57 +09:00
Michael Manganiello
fc844ac341
Upgrade aws-sdk-go to v2 (#559)
* Upgrade aws-sdk-go to v2

`aws-sdk-go-v2` is the newer SDK version, replacing the one being used
at the moment by the project.

This change maintains full compatibility with existing flags and
configurations, and only replaces the underlying library.

* Simplify and isolate AWS config logic
2023-05-24 18:37:06 +09:00
Michael Manganiello
df0d04f0da
Upgrade github.com/urfave/cli to v2 (#551)
`urfave/cli` v2 was released in 2019, and it doesn't introduce relevant
user-facing breaking changes.

Migration guide from v1 can be found at: https://cli.urfave.org/migrate-v1-to-v2/

The only user-facing change is within the "Flags before args" section,
but I haven't found that to affect `transfer.sh` as arguments are not
used.

Co-authored-by: Stefan Benten <mail@stefan-benten.de>
Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
2023-05-19 14:51:40 +09:00
Andrea Spacca
1fb67f49ff
add IP_FILTERLIST_BYPASS_HTTP_AUTH (#538)
* add IP_FILTERLIST_BYPASS_HTTP_AUTH

* refactor to separated ip whitelist
2023-03-12 13:34:41 +09:00
Andrea Spacca
54cacb5487
add http-auth-htpasswd (#537)
* add http-auth-htpasswd

* go mod tidy
2023-03-12 11:52:45 +09:00
Andrea Spacca
3b777e1c19
gpg encryption support (#162)
* gpg encryption support

* gpg encryption support

* refinement

* refactor using protonmail opengpg

* warning

* remove exception in linting

* reduce I/O on decrypt

* fix typo

* streaming in encrypt

* Update README.md

do not reference server public hosting version in encrypt/decrypt headers example

* linting

* linting fix

* increase default random-token-length to 10
2023-03-11 10:08:55 +09:00
Andrea Spacca
28fc9c73f5
Lint accept range (#535)
* Support Range header for GET

* Adds 'Accept-Ranges: bytes' header to handlers

* proper param name in error

* bump gdrive dependecies

* refactor CloseCheck to avoid panic on nil, remove range/audio/video special handling on get handler

* refactor CloseCheck to avoid panic on nil, handle range with no limit

* refactor CloseCheck to avoid panic on nil, handle range in gdrive storage

* refactor CloseCheck to avoid panic on nil

* handle range with no limit

* lint

* bump deps

* go mod tidy

* gofmt

* cr fixes, replace deprecated ioutil.NopCloser

* linting

* do not write to file by default

* fix storj

---------

Co-authored-by: Vladislav Grubov <vladgrubov@gmail.com>
2023-03-11 01:41:43 +09:00
Stefan Benten
64c7759126
all: update gdrive client and various linting cleanups (#497) 2022-07-14 18:02:18 +02:00
Stefan Benten
21812d3efc
server: reorganize storage layer into more clear subfolder (#496)
* server: reorganize storage layer into more clear subfolder

* cmd: fix version command
2022-07-13 06:26:42 +02:00
Andrea Spacca
e3bb49993c
fix perform-clamav-prescan (#460) 2022-01-10 11:01:26 +01:00
Andrea Spacca
cff0a88bf3
Clamav prescan (#389) 2022-01-09 22:14:10 +01:00
Andrea Spacca
acd6fb084f
remove tor, remove bitcoing, fix contact us (#447) 2021-12-15 21:06:54 +01:00
Andrea Spacca
9fe5f9a5c9
Golint (#404)
* golint
* remove gitter badge
2021-08-19 22:45:30 +02:00
Andrea Spacca
69d979ca48 issue 380 and simplier token generation 2021-07-19 21:03:41 +02:00
Andrea Spacca
811679f8fb make version on build time 2021-07-19 21:03:41 +02:00
Andrea Spacca
9df18fdc69
fixes-20210521 (#373) 2021-05-21 15:49:48 +02:00
Andrea Spacca
fdfd453222 Added random-token-length, Encode() refactored 2021-05-20 08:26:07 +02:00
Andrea Spacca
a90d29700d bump version 2021-03-16 19:43:54 +01:00
Andrea Spacca
7cf688e86e fix bug in purge for local storage 2021-01-11 16:02:00 +01:00
Andrea Spacca
1abc7cfb0e bump version 2021-01-06 16:02:42 +01:00
Andrea Spacca
d3381a2293 GOFMT 2021-01-05 17:24:16 +01:00
Andrea Spacca
6ac6c8fa99 PURGE FEATURE 2021-01-05 17:23:47 +01:00
Andrea Spacca
e53d599e09 ISSUE-332 2020-12-31 20:08:42 +01:00
Stefan Benten
b372dc97b5 Merge remote-tracking branch 'dutchcoders/master'
# Conflicts:
#	README.md
#	go.sum
2020-12-15 16:42:12 +01:00
stillwondering
fe1cde6614
Include version string in version command output
The command `transfer.sh version` does not include the application's
version string in its output. Fix this.
2020-10-12 13:25:29 +02:00
Andrea Spacca
9430e53689
Merge pull request #307 from cheeseandcereal/add_proxy_port
add proxy-port for port override when running behind a proxy
2020-05-17 19:28:21 +02:00
Andrea Spacca
5e7e3a1b39 v1.1.7 2020-05-09 12:00:53 +02:00
Adam Crowder
f366e8217e
add proxy-port for port override when running behind a proxy
Signed-off-by: Adam Crowder <adam@adamcrowder.net>
2020-05-03 13:26:49 -07:00
Tobias Perschon
45e0967a37
Update cmd.go
added EnvVar to all flags
2020-04-24 10:32:31 +02:00
Andrea Spacca
ef28bcb28f ISSUE-296 add CORS 2020-04-04 14:29:33 +02:00
stefanbenten
c62e5757ef Merge remote-tracking branch 'origin/master'
# Conflicts:
#	go.mod
#	go.sum
2020-03-20 12:30:59 +01:00
Andrea Spacca
3b1b5b890a Removed contentType from storage, rely on metadata 2020-03-15 19:35:43 +01:00
stefanbenten
924275e45b Code Review Tweaks 2020-03-06 20:36:46 +01:00
stefanbenten
b3f2319cba Further Cleanup 2020-02-21 23:15:13 +01:00
stefanbenten
867471aa9c Clean up documentation and remove unnecessary flag 2020-02-21 23:10:56 +01:00
Andrea Spacca
5fab83bde8 v1.1.3 2020-01-06 17:19:37 +01:00
Stefan Benten
d8e1248949 Further Doc Polishing 2019-12-01 18:19:29 +01:00
Stefan Benten
82617a25c1 Change CLI Flags to match 2019-11-22 15:24:59 +01:00
Stefan Benten
fcbddcee17 Switch to Scope Handling 2019-11-22 15:14:04 +01:00
stefanbenten
11ad244584 Update README 2019-10-06 17:13:21 +02:00
stefanbenten
060dbdf152 Add Ability to run against local test-network 2019-10-06 17:06:26 +02:00
stefanbenten
d5e07fe2f4 Add Env Vars 2019-08-28 16:57:05 +02:00
stefanbenten
874268d80e Add Storj Storage Adapter - add Binding 2019-08-28 15:29:35 +02:00
Andrea Spacca
11dffa22b4 v1.1.2 2019-08-24 14:02:06 +02:00
Andrea Spacca
ee7011d55b ISSUE-256 2019-08-24 13:19:21 +02:00
nrew225
6cb2de3cff Add support for S3 path style URLS. 2019-07-21 09:29:01 -05:00
Andrea Spacca
682a2bd3d8 ISSUE-238 fix version 2019-07-06 20:42:33 +02:00
Andrea Spacca
2cebb7520c ISSUE-242 just some small refactoring 2019-06-23 21:06:58 +02:00
Alexander Lauster
cb17b4a1cc Remove default endpoint because S3 SDK is automatically set the correct one based on the region 2019-06-23 20:40:18 +02:00
Alexander Lauster
47d4907a06 Add option to set the S3 region to support other regions as eu-west-1 2019-06-23 13:04:37 +02:00