Commit graph

590 commits

Author SHA1 Message Date
ed 604e5dfaaf improve error handling / messages 2023-02-26 18:26:13 +00:00
ed 05e0c2ec9e add xiu (batching hook; runs on idle after uploads) +
bunch of tweaks/fixes for hooks
2023-02-26 18:23:32 +00:00
ed 6deaf5c268 add jitter simlation 2023-02-20 21:34:30 +00:00
ed 14ad5916fc freebsd: fancy console listing for fetch 2023-02-19 22:14:21 +00:00
ed 292ce75cc2 return to previous url after login 2023-02-19 19:58:15 +00:00
ed 96d6bcf26e if non-TLS, show warning in the login form 2023-02-17 22:49:03 +00:00
ed 6eba9feffe condense uploads listing on view change 2023-02-14 21:58:15 +00:00
ed b0db14d8b0 indicate forced-randomized filenames 2023-02-04 15:18:09 +00:00
ed 190ccee820 add optional version number on controlpanel 2023-02-04 13:41:34 +00:00
ed 1e20eafbe0 volflag to randomize all upload filenames 2023-02-01 21:58:01 +00:00
ed d8dfc4ccb2 support davfs2 LOCK (uploads) + misc windows support + logue filtering 2023-01-31 18:53:38 +00:00
ed e413007eb0 hide dotfiles from search results by default 2023-01-31 18:13:33 +00:00
ed 8b62aa7cc7 unlink files before replacing them
to avoid hardlink-related surprises
2023-01-31 17:17:18 +00:00
ed 707a940399 add nofollow to zip links 2023-01-29 22:10:03 +00:00
ed 37a690a4c3 fix cookie + rproxy oversights 2023-01-29 18:34:48 +00:00
ed c2ace91e52 v1.6.0 2023-01-29 02:55:44 +00:00
ed c50cb66aef sandboxed other-origin iframes dont cache css 2023-01-28 23:40:25 +00:00
ed d4c5fca15b sandbox readme.md / prologue / epilogue 2023-01-28 21:24:40 +00:00
ed 75cea4f684 misc 2023-01-28 13:35:49 +00:00
ed 82f98dd54d delete/move is now POST 2023-01-28 01:02:50 +00:00
ed 741d781c18 add cors controls + improve preflight + pw header 2023-01-28 00:59:04 +00:00
ed 31101427d3 support downloading blockdev contents 2023-01-27 21:09:57 +00:00
ed ead31b6823 add eventhook sanchecks 2023-01-25 20:51:02 +00:00
ed 4310580cd4 separate http/https logins (breaks ie4 / win3.11 login) 2023-01-24 21:23:57 +00:00
ed f8e3e87a52 add event hooks 2023-01-22 23:35:31 +00:00
ed 664665b86b fix some location-rproxy bugs 2023-01-19 22:26:24 +00:00
ed b0e755d410 give curl colored (yet sortable) plaintext listings 2023-01-17 23:22:43 +00:00
ed 18942ed066 location-based rproxy fixes 2023-01-16 20:09:45 +00:00
ed 71bd306268 fix unpost filters with slashes 2023-01-13 17:56:32 +00:00
ed 447ed5ab37 windows fixes 2022-12-12 21:59:50 +00:00
ed 7fd1d6a4e8 rename --webroot to --rp-loc and fix related bugs 2022-12-11 21:09:50 +00:00
ed 19cd96e392 cleanup + optimizations 2022-12-11 14:16:51 +00:00
ed db194ab519 support location-based rproxy 2022-12-10 23:43:31 +00:00
ed 56b73dcc8a up2k: add option to replace existing file 2022-12-10 19:22:16 +00:00
ed 01e2681a07 davfs2 requires realm 2022-12-09 17:59:24 +00:00
ed 06fa78f54a windows: set .hist folder hidden 2022-12-07 22:56:30 +00:00
ed 9b0f519e4e switch to wal for ~2x faster uploads 2022-12-07 20:52:17 +00:00
ed 9a28afcb48 custom mediaplayer-toggle cursor 2022-12-05 19:46:48 +00:00
ed 45b701801d fix ssdp xml escaping + target url 2022-12-05 19:13:47 +00:00
ed cd9cafe3a1 v1.5.0 2022-12-03 20:45:49 +00:00
ed 7c76d08958 drop one of the slowloris detectors 2022-12-02 17:53:23 +00:00
ed 2997baa7cb better recovery from i/o errors 2022-11-28 22:06:31 +00:00
ed d3fe19c5aa misc fixes 2022-11-28 20:25:32 +00:00
ed 6a96c62fde ok windows is just gonna have to make do 2022-11-27 22:05:38 +00:00
ed c1315a3b39 webdav: misc fixes 2022-11-26 20:06:48 +00:00
ed f0e78a6826 add landing page with mounting instructions 2022-11-26 19:47:27 +00:00
ed 5cd9d11329 add ssdp responder 2022-11-22 21:40:12 +00:00
ed 5a3e504ec4 uninvent a square wheel 2022-11-22 19:12:41 +00:00
ed ec587423e8 show/hide tagsearch ui based on folder flags 2022-11-20 23:30:01 +00:00
ed b3eb117e87 add mdns zeroconf announcer 2022-11-13 20:05:16 +00:00
ed c72753c5da add native ipv6 support 2022-11-06 16:48:05 +00:00
ed 89d1f52235 cursory slowloris / buggy-webdav-client detector 2022-11-01 22:18:20 +00:00
ed 3312c6f5bd autoclose connection-flooding clients 2022-10-31 22:42:47 +00:00
ed c2f4090318 webdav: mute some macos spam 2022-10-30 17:45:28 +00:00
ed 62499f9b71 webdav: more sensible overwrite logic 2022-10-30 17:13:06 +00:00
ed 89cf7608f9 webdav: help windows deal with read-only volumes 2022-10-30 17:11:43 +00:00
ed dd26b8f183 webdav: bump chunksize from 2048 to 32760 byte 2022-10-30 16:53:15 +00:00
ed 79303dac6d webdav: default-disable recursive listing 2022-10-30 16:47:20 +00:00
ed 4203fc161b misc 2022-10-30 16:31:04 +00:00
ed edad3246e0 make pylance happier 2022-10-29 20:40:25 +00:00
ed f14369e038 webdav: mkdir semantics 2022-10-24 14:09:09 +02:00
ed cce57b700b fix range-request on empty files 2022-10-24 03:26:32 +02:00
ed 5b6194d131 stop win10-webdav from flooding the server 2022-10-24 02:33:23 +02:00
ed 2701238cea reply raw markdown unless ?v 2022-10-24 02:10:07 +02:00
ed 835f8a20e6 default-enable webdav 2022-10-23 23:37:32 +02:00
ed f3a501db30 add SMB/CIFS server 2022-10-23 23:08:00 +02:00
ed 947dbb6f8a webdav mimetypes based on file extensions (for gnome) 2022-10-22 02:08:19 +02:00
ed 1c2fedd2bf let webdav replace empty files when sufficiently safe 2022-10-22 01:31:18 +02:00
ed 32e826efbc catch and discard macos metadata files 2022-10-22 01:15:54 +02:00
ed 138b932c6a add webdav move/delete 2022-10-22 00:04:51 +02:00
ed 20eeacaac3 add webdav write support + fix http 200/201 2022-10-21 18:47:48 +02:00
ed 81d896be9f webdav notes 2022-10-19 15:52:19 +02:00
ed 20c6b82bec replace magic numbers with errno.* 2022-10-19 15:21:48 +02:00
ed fe57321853 correct 401/403 usage for webdav 2022-10-18 20:29:06 +02:00
ed 8510804e57 initial webdav support 2022-10-18 19:36:52 +02:00
ed e788f098e2 dont fallback to icons for waveforms 2022-10-09 00:38:56 +02:00
ed 12219c1bea more fun with symlinks 2022-10-08 21:08:51 +02:00
ed 78fa96f0f4 add unpost sanchk 2022-10-08 18:23:41 +02:00
ed 2a5a4e785f include filekeys in unpost list 2022-10-08 01:18:27 +02:00
ed d8bddede6a new permission G returns filekey on write-only uploads 2022-10-08 01:17:41 +02:00
ed dbb3edec77 print qr-code on startup 2022-10-07 00:47:26 +02:00
ed abb3224cc5 option to save a copy of corrupted uploads 2022-09-26 22:01:49 +02:00
ed e00e80ae39 v1.4.2 2022-09-25 14:36:10 +02:00
ed a286cc9d55 fix printing big unicode messages 2022-09-25 14:04:35 +02:00
ed 1d367a0da0 cleanup 2022-09-23 20:37:37 +02:00
ed 32e71a43b8 reinvent fail2ban 2022-09-21 22:27:20 +02:00
ed 0b87a4a810 allow setting lifetimes from up2k ui 2022-09-19 23:49:07 +02:00
ed 9401b5ae13 add filetype detection for nameless uploads 2022-09-18 17:30:57 +02:00
ed 09cea66aa8 add ability to set lifetime per-file during upload 2022-09-18 13:12:38 +02:00
ed 13cc33e0a5 support random filenames in bup too 2022-09-18 01:03:38 +02:00
ed fad1449259 drop the redundant request for folders on navigation 2022-09-17 21:39:44 +02:00
ed 3108139d51 30% faster tags listing 2022-09-17 19:36:42 +02:00
ed 2ae99ecfa0 new upload modifiers:
* terse upload responser
* randomize filenames
2022-09-17 14:48:53 +02:00
ed 0dbeb010cf fix symlinked filekeys 2022-09-16 21:41:17 +02:00
ed 1684d05d49 dont crash chrome with too many unique SVGs 2022-09-11 11:47:26 +02:00
ed 0006f933a2 hmac uploader-ip when avoiding filename collisions 2022-09-11 08:27:45 +02:00
ed 0484f97c9c stop writing upload-summary textfiles,
can be reenabled with --write-uplog
2022-09-10 22:07:10 +02:00
ed e430b2567a add pyoxidizer (windows-only) 2022-09-10 17:33:04 +02:00
ed 635ab25013 up2k.js: defer worker startup until needed 2022-09-05 00:55:52 +02:00
ed 799cf27c5d restore .bin-suffix for nameless PUT/POSTs
disappeared in v1.0.11
2022-09-03 19:59:59 +02:00
ed f727d5cb5a new cloudflare memes, thx nh 2022-08-09 09:00:22 +02:00
ed 1c3894743a fix filekeys inside symlinked volumes 2022-08-02 20:26:51 +02:00
ed dac2fad48e v1.3.8 2022-07-27 16:07:26 +02:00
ed e24ffebfc8 indicate write-activity on splashpage 2022-07-27 14:53:15 +02:00
ed 4a76663fb2 ensure free disk space 2022-07-17 22:33:08 +02:00
ed 3fa377a580 sqlite diag 2022-07-16 20:43:26 +02:00
ed c2b66bbe73 add potato mode 2022-07-14 02:33:35 +02:00
ed a3431512d8 push queue/status info to server 2022-07-12 21:22:02 +02:00
ed d832b787e7 upload smallest-file-first by default 2022-07-12 20:48:38 +02:00
ed dded4fca76 option to specify favicon + default-enable it 2022-07-05 00:06:22 +02:00
ed d8ebcd0ef7 lol dpi 2022-07-04 22:13:28 +02:00
ed 6e445487b1 satisfy cloudflare DDoS protection 2022-07-03 16:04:28 +02:00
ed 4083533916 vt100 listing: reset color at eof 2022-06-29 22:41:51 +02:00
ed a473e5e19a always include custom css/js 2022-06-27 17:24:30 +02:00
ed 917b6ec03c naming 2022-06-19 22:58:20 +02:00
ed fe67c52ead configurable list of sparse-supporting filesystems +
close nonsparse files after each write to force flush
2022-06-19 22:38:52 +02:00
ed 2147c3a646 run markdown plugins in directory listings 2022-06-19 18:17:22 +02:00
ed 190e11f7ea update deps + misc 2022-06-16 21:43:40 +02:00
ed ad7413a5ff add .PARTIAL suffix to bup uploads too +
aggressive limits checking
2022-06-16 21:00:41 +02:00
ed 903b9e627a ux snappiness + keepalive on http-1.0 2022-06-16 20:33:09 +02:00
ed 728dc62d0b optimize nonsparse uploads (fat32, exfat, hpfs) 2022-06-16 17:51:42 +02:00
ed 438384425a add types, isort, errorhandling 2022-06-16 01:07:15 +02:00
ed fe73f2d579 cleanup 2022-06-07 23:08:43 +02:00
ed 4c4b3790c7 fix read-spin on d/c during json post + errorhandling 2022-06-07 19:02:52 +02:00
ed e7cd922d8b translate splashpage and search too 2022-05-15 13:20:52 +02:00
ed 187feee0c1 add norwegian translation 2022-05-14 23:25:40 +02:00
ed 23e4b9002f support ?doc=mojibake 2022-05-13 18:10:55 +02:00
ed 67c298e66b don't embed huge docs (defer to ajax), closes #9 2022-05-13 17:08:17 +02:00
ed 0143380306 help the query planner 2022-05-13 01:41:39 +02:00
ed 2f2c65d91e improve up2k error messages 2022-05-07 22:15:09 +02:00
ed 0a1d9b4dfd nevermind, not reliable when rproxied 2022-05-01 22:35:34 +02:00
ed b50d090946 add logout on inactivity + related errorhandling 2022-05-01 22:12:25 +02:00
ed 24cb30e2c5 support login from ie4 / win3.11 2022-05-01 11:42:19 +02:00
ed 4549145ab5 fix filekeys in basic-html browser 2022-05-01 11:29:51 +02:00
ed 7755392f57 redirect to webroot after login 2022-04-30 18:15:09 +02:00
ed 125d0efbd8 good stuff 2022-04-29 02:06:56 +02:00
ed f9c159a051 add option to force up2k turbo + hide warning 2022-04-28 21:57:37 +02:00
ed 2ab1325c90 add option to load more search results 2022-04-28 21:55:01 +02:00
ed 9269bc84f2 skip more stuff windows doesn't like 2022-04-28 10:31:10 +02:00
ed f5d6ba27b2 handle invalid headers better 2022-04-27 22:30:19 +02:00
ed 73fa70b41f fix mostly-harmless xss 2022-04-27 22:29:16 +02:00
ed 2a1cda42e7 avoid deadlocks on windows 2022-04-27 22:27:49 +02:00
ed 9697fb3d84 option to disable thumbnails per volume 2022-04-14 17:11:26 +02:00
ed 2dbed4500a add flat theme 2022-04-14 16:57:51 +02:00
ed 344ce63455 basic-browser is implicitly not js 2022-03-21 01:20:47 +01:00
ed f3e8308718 eh, better as volflags 2022-03-20 05:45:07 +01:00
ed 954c7e7e50 add option to request noindex from crawlers 2022-03-20 03:23:42 +01:00
ed 67ff57f3a3 add option to disable html folder listings 2022-03-20 02:45:53 +01:00
ed ac6c4b13f5 add plaintext volume listing 2022-03-02 21:20:19 +01:00
ed c1a7f9edbe ftpd: add indexing, delete, windows support 2022-02-13 13:58:16 +01:00
ed 98a90d49cb ctrl-click document links to open in new tab 2022-02-12 20:26:44 +01:00
ed ce776a547c add rate throttling to uploads too 2022-02-06 02:06:59 +01:00
ed c9cac83d09 fix PUT response in write-only folders 2022-01-18 21:37:11 +01:00
ed e87ea19ff1 return file URL in PUT response 2022-01-11 22:59:19 +01:00
ed dd28de1796 sendfile: handle eagain 2021-12-17 00:04:19 +01:00
ed 6530cb6b05 shut socket on tx error 2021-12-16 22:51:24 +01:00
ed 50d8ff95ae good stuff 2021-12-10 02:21:56 +01:00
ed 689e77a025 option to set a custom servicename 2021-12-06 22:24:25 +01:00
ed 3bd89403d2 apply per-volume index config to ui 2021-12-06 22:04:24 +01:00
ed 352b1ed10a generate correct links when trailing slash missing 2021-12-06 19:49:14 +01:00
ed 4a843a6624 unflicker navpane + add client state escape hatch 2021-12-04 02:46:00 +01:00
ed 1521307f1e use preferred sort on initial render, fixes #8 2021-12-03 02:07:08 +01:00
ed 30f124c061 fix forcing compression levels 2021-11-20 18:51:15 +01:00
ed 2c7ffe08d7 include sha512 as both hex and b64 in responses 2021-11-20 01:03:32 +01:00
ed 6efb8b735a better handling of python builds without sqlite3 2021-11-16 01:13:04 +01:00
ed 12b3a62586 fix dumb mistakes 2021-11-15 20:13:16 +01:00
ed cae436b566 add client-option to disconnect on HTTP 304 2021-11-15 02:45:18 +01:00
ed b206c5d64e handle multiple simultaneous uploads of the same file 2021-11-14 15:03:11 +01:00
ed 62c3272351 add option to simulate latency 2021-11-14 15:01:20 +01:00
ed c26fb43ced more cleanup 2021-11-12 22:30:23 +01:00
ed b8b15814cf add traffic shaping, bump speeds on https/windows 2021-11-12 01:34:56 +01:00
ed a90586e6a8 add reload api 2021-11-06 19:05:58 +01:00
ed f050647b43 rescan volumes on sigusr1 2021-11-06 18:20:31 +01:00
ed e9ab6aec77 allow full mime override 2021-11-06 00:50:20 +01:00
ed 82a0401099 at some point firefox became case-sensitive 2021-11-04 22:10:45 +01:00
ed f083acd46d let client force plaintext response content-type 2021-11-04 22:02:39 +01:00
ed cb7674b091 make prism optional 2021-11-04 03:10:13 +01:00
ed ba36f33bd8 add textfile viewer 2021-11-04 01:40:03 +01:00
ed fdd4f9f2aa dirlist alignment 2021-11-02 18:59:34 +01:00
ed aa2dc49ebe trailing newline for plaintext folder listings 2021-11-02 18:48:32 +01:00
ed f6f9fc5a45 add audio transcoder 2021-11-02 02:59:37 +01:00
ed 3eb83f449b truncate ridiculous extensions 2021-10-27 23:42:28 +02:00
ed d31f69117b better plaintext and vt100 folder listings 2021-10-27 23:04:59 +02:00
ed 94dbd70677 plaintext folder listing with ?ls=t 2021-10-27 00:00:12 +02:00
ed 060dc54832 thumbnail caching 2021-10-24 00:29:04 +02:00
ed f7a4ea5793 add --js-browser 2021-10-24 00:26:47 +02:00
ed 806fac1742 nullwrite fixes 2021-10-19 00:58:24 +02:00
ed 4f97d7cf8d normalize collision suffix 2021-10-19 00:49:35 +02:00
ed 42acc457af allow providing target filename in PUT 2021-10-19 00:48:00 +02:00
ed 3b4dfe326f support pythons with busted ffi 2021-10-12 00:44:55 +02:00
Daedren fc7fe70f66 is_http now a class variable. Also checks lowercase value 2021-10-09 09:58:14 +02:00
Daedren 5aff39d2b2 Protocol of uploaded file based on X-Forwarded-Proto 2021-10-09 09:58:14 +02:00
ed 9e10af6885 make the 404/403 vagueness optional 2021-10-01 19:51:51 +02:00
ed 5886a42901 url escaping 2021-09-26 16:59:02 +02:00
ed 0d5ca67f32 up2k-srv: add option to reuse file-handles 2021-09-26 03:44:22 +02:00
ed 59be76cd44 fix basic-upload into fk-enabled folders 2021-09-19 15:00:55 +02:00
ed b78d207121 encourage statics caching 2021-09-19 00:36:48 +02:00
ed 0fcbcdd08c correctly ordered folders in initial listing 2021-09-19 00:08:29 +02:00
ed fb3811a708 bunch of filekey fixes 2021-09-18 23:44:44 +02:00
ed 06bbf0d656 filekeys in search results 2021-09-18 17:26:13 +02:00