Andrei Marcu
e506304b84
Return direct URL in json responses
6 years ago
Andrei Marcu
1fb92ffce3
Fix bug where using curl with json headers would return the file instead
6 years ago
Andrei Marcu
c746f70c10
Allow changing the "selif" path name
6 years ago
Benjamin Neff
6290f408ff
Allow to paste images ( #153 )
dropzone.js doesn't support pasting itself yet, so adding it externally
and calling `.addFile()` to upload the pasted image.
Fixes #130
6 years ago
mutantmonkey
5f4f16e08b
Add file ETag support ( fix #138 ) ( #152 )
6 years ago
mutantmonkey
10938a3e0b
Remove Google URL shortener ( fix #146 ) ( #150 )
6 years ago
mutantmonkey
bad7d2666e
Switch to Referrer-Policy header ( #149 )
Use of the Content-Security-Policy header to specify a referrer policy
was deprecated in favor of a [new
header](fc55d917be
).
This change changes the existing referrer policy directives to use this
header and adds corresponding config options/command line flags.
6 years ago
Andrei Marcu
19a95e36a6
Fix Travis parsing of 1.10 as 1.1
6 years ago
Andrei Marcu
f19247a790
Update Travis to 1.10 and 1.11
6 years ago
Thor77
5d8a0ef605
Serve file directly for curl and wget user agents ( #145 )
* Serve file directly for curl and wget user agents
Fix #127
* Add test for get with wget user agent
* Add -nodirectagents flag
to disable serving files directly for wget/curl user agents
* Fix TestPutAndGetCLI failing for Go 1.5
It failed because it doesn't include the Content-Type header for every
response.
6 years ago
Andrei Marcu
7c024d9aab
Merge pull request #141 from bruj0/patch-1
Fix files and meta permissions
7 years ago
Rodrigo D. L
b82371250a
Fix files and meta permissions
When running under docker-compose the volume changes the permissions by default to root but its avoided if the directory where it is mounted is created first with the correct owner.
7 years ago
Andrei Marcu
4fa6423a85
Merge pull request #137 from mutantmonkey/issue_136
Fix -nologs on linx-cleanup tool (closes #136 )
7 years ago
mutantmonkey
c015b5f1da
Fix -nologs on linx-cleanup tool ( closes #136 )
7 years ago
andreimarcu
e86f19ecb1
Add linx-cleanup to build script
7 years ago
Andrei Marcu
ceea32de6b
Merge pull request #124 from mutantmonkey/cleanup_tool
Add linx-cleanup tool
8 years ago
mutantmonkey
a69aa95a87
Add `linx-cleanup` info to readme
8 years ago
mutantmonkey
32b537a057
Add missing `flag.Parse()` call
8 years ago
mutantmonkey
c6f62fccdf
Drop Mercurial from Dockerfile
We no longer have any Mercurial dependencies, so we don't need to
install it anymore.
8 years ago
mutantmonkey
b7fadd9676
Add linx-cleanup tool
This doesn't completely fix #116 , but it makes setting up a cron job to
do cleanup much more pleasant.
8 years ago
Andrei Marcu
d8568e141f
Merge pull request #121 from mutantmonkey/remove_mime_extension_map
Remove mime type to extension map from util.go
8 years ago
mutantmonkey
bb7f7a1774
Remove mime type to extension map from util.go
This is no longer used, so it can be removed.
8 years ago
andreimarcu
37f9a0cbbc
Change unknown extension from .ext to .file
8 years ago
Andrei Marcu
1c1d3127ab
Merge pull request #120 from mutantmonkey/switch_to_filetype
Switch to https://github.com/h2non/filetype
8 years ago
mutantmonkey
e6ac89d6dc
Switch to https://github.com/h2non/filetype
This library is much better at detecting MIME types properly than the
existing one. Fixes #117 .
8 years ago
Andrei Marcu
e588d78299
Merge pull request #112 from mutantmonkey/issue_111
Fix max expiry when provided expiry is 0
8 years ago
mutantmonkey
647aa2c0f6
Fix max expiry when provided expiry is 0
Previously, we did not properly handle the case where the provided
expiry was zero and the max expiry was configured to be nonzero; add an
additional check to cover this case.
Fixes #111 .
8 years ago
Andrei Marcu
0e768cc6f4
Merge pull request #109 from culdev/master
Fix file upload for Internet Explorer
8 years ago
culdev
8f384dc5ce
Use value instead of selectedOptions.
8 years ago
Andrei Marcu
e9ae7a794f
Merge pull request #105 from Thor77/systemd-service
Add Install-section to systemd-service
8 years ago
Thor77
c75cd5ef9e
Add Install-section to systemd-service
8 years ago
andreimarcu
eb036f2819
Fix typo
8 years ago
Andrei Marcu
29d3157a03
Merge pull request #102 from mutantmonkey/maxexpiry
Add option for maximum expiration time (fixes #99 )
8 years ago
mutantmonkey
fef43d856e
Add option for maximum expiration time ( fixes #99 )
8 years ago
Andrei Marcu
3321144e74
Merge pull request #101 from mutantmonkey/docker
Add Dockerfile
8 years ago
mutantmonkey
932a470ead
add Docker instructions to readme
8 years ago
mutantmonkey
2e5521ce7d
Add Dockerfile
This will build the binary directly in the image without a need to have
Go installed locally.
8 years ago
Thor77
4ef3f33821
Add systemd-service ( #96 )
8 years ago
andreimarcu
81a1513809
Add newline for PUT response
8 years ago
andreimarcu
1e1f28658d
Remove spaces in mime mapping and ensure no spaces in filenames
8 years ago
Andrei Marcu
ca11d99678
Merge pull request #93 from mutantmonkey/reduce_open_calls
Remove unnecessary file processing in display.go
8 years ago
mutantmonkey
93d37002dd
remove unnecessary file processing in display.go
There is no need to open the file here; nothing is done with the header
after it is read.
8 years ago
andreimarcu
9467be9717
No margin/border without line numbers
9 years ago
andreimarcu
e6db8553b0
Fix line numbers for text
9 years ago
Atrox
027f5cce42
Add ability to short urls for uploaded content ( #85 )
Add ability to short urls for uploaded content
9 years ago
Andrei Marcu
30d2d63466
Merge pull request #87 from Atrox/sitename
Fix that custom sitename gets ignored
9 years ago
Atrox
aedd7bc589
Fix that custom sitename gets ignored
9 years ago
andreimarcu
f06b06fe76
Add overflow-wrap to lines.css
9 years ago
andreimarcu
0a361a268c
Get rid of highlightjs-line-numbers.js
9 years ago
andreimarcu
d6755486b2
Sanitize upload response ( Fixes #79 )
9 years ago