Stefan Benten
92324798d5
server: adding no-store header ( #476 )
...
In order to prevent viewing content, which max-download rate has been reached,
we need to ensure the data is not stored locally in a browser cache.
To achieve this, we set the Cache-Control Setting to "no-store" according to:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
fixes #470
2022-04-10 12:13:06 +02:00
Ramon Fischer
b30b296ac8
correct typo ( #480 )
2022-04-06 01:33:40 +02:00
jeanluc
bb0891cd7d
Docker: Allow selection of (unprivileged) UID/GID at build time ( #418 )
...
* Docker: use custom non-root UID/GID (build-arg)
2022-04-03 14:55:15 +02:00
Andrea Spacca
9c31ceb2c5
Update README.md
2022-04-03 06:17:51 +02:00
Anirudh Haritas Murali
597554a59e
Add X-Url-Delete-* headers to POST handler ( #435 )
...
* Add X-Url-Delete-* headers to POST handler
* Remove token from header
* Fix writing of headers
* Handle error returned by Write
* Update handlers.go
Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
2022-03-02 13:26:00 +01:00
Stefan Benten
368431fb6b
server/storage.go: Update storj dependencies and set user-agent ( #467 )
2022-02-09 12:37:11 +01: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
Stefan Benten
492731e31f
server: propagate context to storage layer ( #455 )
...
This change propagates the context of the actual user request through.
Additionally it configures the Storj Backend to do in memory buffering instead of relying on temporary files in /tmp/ folders.
Fixes #448
2021-12-26 17:17:28 +01:00
Stefan Benten
f062af9fc5
server/handlers.go,storage.go: smaller fixes ( #452 )
...
This change moves a couple of defers in order to prevent them from not being executed since we have returned in error cases early.
It also fixes a couple of smaller linting issues, like error messages not starting with a capital letter and variable name collisions with imported packages.
2021-12-26 14:37:22 +01:00
Stefan Benten
2fbd19365c
.github/workflows: adding golangci-lint as new job ( #453 )
...
In order to follow golang's best practices, we should lint the code base properly beyond usual syntax mistakes.
2021-12-26 14:03:27 +01:00
Stefan Benten
5932a194b2
go.mod,go.sum: bumping storj dependency ( #454 )
2021-12-26 09:30:45 +01:00
Andrea Spacca
acd6fb084f
remove tor, remove bitcoing, fix contact us ( #447 )
2021-12-15 21:06:54 +01:00
Andrea Spacca
6f49951bc0
master to main, what's left
2021-12-07 20:24:58 +01:00
Andrea Spacca
d2a0e77814
fix in force-https redirect ( #441 )
2021-12-07 19:41:42 +01:00
Andrea Spacca
014b95ff07
fix typo in flake.nix
2021-12-07 13:39:53 +01:00
干志雄
0eec27586d
Add uploading and copy download command ( #412 )
...
* Add uploading and copy download command
2021-11-13 09:16:53 +01:00
kugiyasan
c7164856d2
issue #420 added MaxDate.IsZero() check ( #427 )
...
* issue #420 return 400 response when Max-Days is too big
* issue #420 moved the Max-Days check before saving the metadata
* issue #420 added a logging message when Max-Days is invalid
* issue #420 added MaxDate.IsZero() check
Co-authored-by: kugiyasan <kugiyasan@users.noreply.github.com>
2021-10-30 10:04:43 +02:00
Andrea Spacca
96723b2685
fix go1.16, add go1.17
2021-10-26 19:34:40 +02:00
Andrea Spacca
4a56bad05f
bump bluemonday
2021-10-26 19:12:34 +02:00
Andrea Spacca
fa74be02d2
Revert "issue #420 return 400 response when Max-Days is too big ( #422 )" ( #426 )
...
This reverts commit 2959fc2992
.
2021-10-26 19:03:51 +02:00
kugiyasan
2959fc2992
issue #420 return 400 response when Max-Days is too big ( #422 )
...
* issue #420 return 400 response when Max-Days is too big
Co-authored-by: kugiyasan <kugiyasan@users.noreply.github.com>
2021-10-25 18:33:18 +02:00
Yannik Sander
694b3ce246
Implement Nix Flake ( #424 )
...
* Implement flake
2021-10-24 09:42:38 +02:00
Masaya Watanabe
92948fab23
fix missed errors ( #417 )
...
Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
2021-10-16 09:57:59 +02:00
mattn
e5455d9713
Fix path ( #416 )
...
* chan is leaked
* Remove path.Clean
Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
2021-10-16 09:51:09 +02:00
Soumil Arora
6ab75b30e5
Edited code of condunct for more information and corrected a grammatical error ( #421 )
2021-10-16 09:36:02 +02:00
Christian Leo-Pernold
6b8eff8322
Update README.md ( #415 )
...
* Update README.md
Add minor grammar improvements.
* Update README.md
Fix grammar.
2021-10-08 10:55:56 +02:00
Stefan Benten
2da62eb235
Merge pull request #414 from modem7/patch-1
2021-10-03 12:51:02 +02:00
modem7
156daa5a24
Update README.md
...
Edited capitalization of some sections to better follow the rest of the readme.
2021-10-03 02:56:17 +01:00
Andrea Spacca
e97fdcb293
remove build on master
2021-08-20 08:07:12 +02:00
Andrea Spacca
9fe5f9a5c9
Golint ( #404 )
...
* golint
* remove gitter badge
2021-08-19 22:45:30 +02:00
wc7086
788dfa203f
Build more binary releases ( #395 )
...
* Build more binary releases
2021-08-19 20:57:42 +02:00
Stefan Benten
440ccf3a57
Merge pull request #399 from dutchcoders/ISSUE-398
...
s3 and storj storage: use nil when purgeDays is 0
2021-08-15 11:50:26 +02:00
Andrea Spacca
224f8dca42
s3 and storj storage: use nill when purgeDays is 0
2021-08-15 10:40:58 +02:00
Stefan Benten
d16a6cc25e
Merge pull request #393 from dutchcoders/dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.5
...
Bump github.com/microcosm-cc/bluemonday from 1.0.4 to 1.0.5
2021-08-01 22:58:09 +02:00
dependabot[bot]
49a083d8a2
Bump github.com/microcosm-cc/bluemonday from 1.0.4 to 1.0.5
...
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases )
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.4...v1.0.5 )
---
updated-dependencies:
- dependency-name: github.com/microcosm-cc/bluemonday
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 09:07:59 +00:00
Stefan Benten
f38eb6fb77
Multiple fixes
2021-07-26 10:59:28 +02:00
Andrea Spacca
8f5a0a80f3
bump trasfer.sh-web
2021-07-23 11:46:00 +02:00
Andrea Spacca
a895846bbc
bump trasfer.sh-web
2021-07-23 11:37:09 +02:00
Andrea Spacca
3990c3c5b7
gofmt
2021-07-23 11:21:05 +02:00
Andrea Spacca
3ea4ffd0e3
cr fixes and dynamic upload size in UI
2021-07-23 11:20:49 +02:00
Andrea Spacca
88003018e6
deletion token in UI
2021-07-19 21:03:41 +02:00
Andrea Spacca
9baefbc4bf
purge time in ui, fix range regeression from videojs
2021-07-19 21:03:41 +02:00
Andrea Spacca
e9148e0c20
remove unused const
2021-07-19 21:03:41 +02:00
Andrea Spacca
2ecedb93c6
rename file
2021-07-19 21:03:41 +02:00
Andrea Spacca
1ff9ccd01e
copyright update
2021-07-19 21:03:41 +02:00
Andrea Spacca
ca17555c22
forgot dockerfile
2021-07-19 21:03:41 +02:00
Andrea Spacca
a7a3e685fe
gofmt
2021-07-19 21:03:41 +02:00
Andrea Spacca
94f94f27ff
rename benchmark
2021-07-19 21:03:41 +02:00
Andrea Spacca
69d979ca48
issue 380 and simplier token generation
2021-07-19 21:03:41 +02:00