Matt Hazinski
875ebd6db2
Add support for deletion key and expiry in remote upload
10 years ago
Andrei Marcu
a5d4f754e7
Merge pull request #41 from dyreshark/master
Cleanup
10 years ago
George Burgess IV
12551d12b3
housekeeping
10 years ago
George Burgess IV
1e421e07cd
swap to using time types instead of ints
10 years ago
George Burgess IV
4330d605e3
Clean up logging on start
10 years ago
andreimarcu
c5250e529e
Headers are now Linx-.. instead of X-...
10 years ago
andreimarcu
ce73598f12
Document csp flags
10 years ago
Andrei Marcu
f5e11ef8a3
Merge pull request #40 from mutantmonkey/librejs
add LibreJS tags to JavaScript
10 years ago
mutantmonkey
73eba6aaad
add LibreJS tags to JavaScript
Fixes #38
10 years ago
Andrei Marcu
46d6b7b98a
Merge pull request #39 from mutantmonkey/robots.txt
add a file blacklist and add robots.txt
10 years ago
mutantmonkey
ad9d712a3a
add a file blacklist and add robots.txt
Fixes #26
10 years ago
andreimarcu
d40cc5e1be
More textarea consistency
10 years ago
andreimarcu
060ab351b0
Textarea consistency with pastebin
10 years ago
andreimarcu
cb8b8800ba
Cleanup vim artifacts
10 years ago
Andrei Marcu
7152adb902
Merge pull request #36 from mutantmonkey/csp
Add support for Content-Security-Policy and X-Frame-Options
10 years ago
mutantmonkey
b96ee60c4c
Revert "add X-Content-Type-Options: nosniff"
This reverts commit 71d5f51ae6
.
10 years ago
mutantmonkey
71d5f51ae6
add X-Content-Type-Options: nosniff
10 years ago
mutantmonkey
42aab4dca1
fix a merge conflict mistake for upload errors
10 years ago
mutantmonkey
e030c07f94
allow unsafe-inline for style-src for now
This is used for the upload progress bar. Hopefully we can find a better
solution in the future for this.
10 years ago
mutantmonkey
5e7e96af01
add support for some security headers
This commit adds support for Content-Security-Policy and
X-Frame-Options using the ContentSecurityPolicy middleware.
10 years ago
mutantmonkey
70cff4431d
tweak editor textarea style
10 years ago
mutantmonkey
f0e71325c4
Merge branch 'master' into csp
10 years ago
andreimarcu
3e2537ca68
Get rid of ace editor
10 years ago
mutantmonkey
44172ec98a
clean up HTML, CSS, and JavaScript for CSP
In order to implement Content-Security-Policy, the inlined style, event
handlers, and scripts all have to go. This commit completes this work.
10 years ago
andreimarcu
1e1c8caa53
Add /favicon.ico route
10 years ago
andreimarcu
d40803f165
More verbose errors
10 years ago
mutantmonkey
84f38026eb
do some more HTML and JS cleanup
10 years ago
mutantmonkey
b83f11e80a
remove inline js on pastebin pages
10 years ago
andreimarcu
335517bf17
Update upload.js with 200 status for delete
10 years ago
andreimarcu
7f2db43108
DELETE requests respond with 200 on successful deletes
10 years ago
andreimarcu
adf77c642f
Added basic build script
10 years ago
andreimarcu
64034a74a6
Merge branch 'mutantmonkey-no_css_in_js'
10 years ago
mutantmonkey
f216b06df5
remove most of CSS from JavaScript
The uploadElement is probably going to have to stay, unfortunately, but
the rest is gone.
10 years ago
Andrei Marcu
5fa994771f
Merge pull request #24 from mutantmonkey/torrent_fixup
change CreateTorrent to createTorrent
10 years ago
andreimarcu
5aa8ed011f
Merge branch 'mutantmonkey-safeuris'
10 years ago
mutantmonkey
199289a58d
change CreateTorrent to createTorrent
After some discussion, I decided it was probably best to not export this
after all.
10 years ago
mutantmonkey
98106ec74f
use better random for URLs and delete keys
Using a PRNG seeded based on only the time for these is a bad idea as
the output is predictable. Instead, use a package that generates random
strings using go's crypo/rand package to provide cryptographically
secure random URLs and delete keys.
10 years ago
andreimarcu
8f7b47f572
Support remote uploads
10 years ago
andreimarcu
9cd20c81fc
This is not the commit you are looking for
10 years ago
andreimarcu
c339a8c770
Highlight dropzone when dragging
10 years ago
andreimarcu
e3dbbd1b11
Fix typo
10 years ago
andreimarcu
61e1661dde
Fix small file uploads
10 years ago
andreimarcu
52cc3b4dff
Add fastcgi support and static cache headers
10 years ago
andreimarcu
6a227d15a2
Reorder navigation
10 years ago
andreimarcu
fcb9afde0d
Pass randomize and expires in upload
10 years ago
andreimarcu
31359499ac
Switch to dropzonejs. Fixes #18
10 years ago
andreimarcu
ba73f4adf3
Fix static directory listing recursion
10 years ago
andreimarcu
d55cf33a5d
Add support for pastebin display
10 years ago
Andrei Marcu
3bf7c88cc8
Merge pull request #16 from Uncurlhalo/fix-512-byte-files
Add a check to see if we already hit EOF on Read
10 years ago
Jacob Melton
c22e314d80
Add a check to see if we already hit EOF on Read
10 years ago