Commit Graph

375 Commits

Author SHA1 Message Date
zefie
b87c1adac0 don't compress files under 256 bytes 2021-08-09 18:57:29 -04:00
zefie
23535780f3 remove this for now
- bf0app does it when logging back in with a tellyscript
- server did its job but box was not responding to wtv-visit
2021-08-09 18:48:14 -04:00
Eric MacDonald
56ab5228cd fix encryption errors 2021-08-09 18:48:13 -04:00
Eric MacDonald
f28d63708c Scratch that. Do what offers better compression over replicating the service. RC4 is too random 2021-08-09 18:48:13 -04:00
Eric MacDonald
fa02d6c802 Less problems compressing after RC4 2021-08-09 18:48:13 -04:00
zefie
4a2dc1680d add catchall system & http pc server
- define a catchall name to run globally or per service
- catchall must be javascript, but not necessarily a .js file
- catchall can request async mode
- catchall will catch any non-existing requests under its directory
- see wtv-flashrom:/content/content-serve.js as an example, which will catch wtv-flashrom:/content/ URLs.

- http pc: sends HTTP/1.0 to PC clients
- can be disabled with `pc_server_hidden_service_enabled`: false
- can change servicevault path by changing string of pc_server_hidden_service
- get.js in default PC service vault to get any WTV Url on the service
2021-08-09 17:38:34 -04:00
zefie
28c2c80889 more accurately mimic WTVP
by accepting URLs without /
2021-08-09 15:03:04 -04:00
zefie
fe53525b39 do not compress if softmodem minibrowser 2021-08-09 14:07:14 -04:00
zefie
7d102033fc fix socket cleanup timeout system 2021-08-09 13:07:44 -04:00
zefie
376aadd762 Revert "respect Connection: close"
This reverts commit c09d0d6989.
2021-08-09 10:47:38 -04:00
zefie
62eba01ddd only compress if http status 200 2021-08-09 10:47:26 -04:00
zefie
a426a36a24 fix quiet logging undefined bytes 2021-08-08 23:34:15 -04:00
zefie
1aa1755664 update wtv-home:/home
- remove spacing in favor of right alignment
- add compression status
2021-08-08 22:55:22 -04:00
zefie
72f1c989c6 add gzip compression for LC2 and newer 2021-08-08 22:25:42 -04:00
zefie
f0861e2f21 improve session retention 2021-08-08 19:54:29 -04:00
zefie
e09af90908 further fix d4e355a0a3
- was only replacing one +
- code for single post element was erroneous
2021-08-08 18:06:55 -04:00
zefie
cc88570466 WTVP does not use \r, so swapping the internal header's usage for now. May remove internal header in future update 2021-08-08 15:34:45 -04:00
zefie
514a4bf11d missed this in d4e355a0a3 2021-08-08 15:03:31 -04:00
zefie
75c59d9e56 re-add git commit to console version string 2021-08-08 14:26:17 -04:00
zefie
d4e355a0a3 fix e5d5b1e8e7 2021-08-08 14:25:05 -04:00
zefie
e5d5b1e8e7 unescape query arguments during processing 2021-08-08 14:18:50 -04:00
zefie
acd90bc66b fix some mstv sim related issues 2021-08-08 13:11:54 -04:00
zefie
6741e1e374 Merge branch 'lzpf-compression' 2021-08-08 12:57:23 -04:00
zefie
18e74dc53c update getConType with known WTV overrides 2021-08-08 12:11:19 -04:00
zefie
9c68dc5585 update version reporting to include git branch, in prep for v1.0 2021-08-08 11:18:31 -04:00
Eric MacDonald
47f54dda46 Whoopies. Needed to define things 2021-08-07 19:49:45 -04:00
Eric MacDonald
72dcce0f8f Use uncompressed length for Content-length like WNI (fixes HTML pages) 2021-08-07 19:46:15 -04:00
Eric MacDonald
1bc7cadac5 Remove other junk not needed 2021-08-07 19:44:38 -04:00
Eric MacDonald
8775eba32e Remove debug log 2021-08-07 19:44:22 -04:00
Eric MacDonald
a2f3ce67a1 Using session capabilities to enable compression now 2021-08-07 19:43:22 -04:00
zefie
d5fa489b9c some more fixes to the registration/login system 2021-08-07 19:41:33 -04:00
zefie
12be904b5c enable config flag for compression, default false (until working fully) 2021-08-07 19:20:42 -04:00
zefie
c09d0d6989 respect Connection: close 2021-08-07 18:34:56 -04:00
zefie
00f80c9ea5 Merge branch 'lzpf-compression'
- fix issues caused by my rebasing
2021-08-07 17:27:28 -04:00
zefie
2d1893e450 revert sendToClient() to the state at which eMac merged his changes 2021-08-07 17:04:17 -04:00
zefie
f15f377f8e v0.9.12 - WILL REBASE - BE WARNED
- convert post_data to query if valid query data
- wtv-register system
- Store Session data as JSON flat file
- wtv-cookie support
- spent way too much time on a page no one will read
- move filterSSID to WTVClientSessionData
- disable compression until fixed
- do not delete WTVSec on last socket, instead recreate on prereg
- set 'wtv-bypass-proxy' to false
- rework header whitelist system for HTTP(s) proxy
- clean up SSID session data only if client is not seen for 3 minutes
- add shouldWeCompress() function
- add additional headers to wtv-setup:/get
- add initial blank wtv-music:/get-playlist
2021-08-07 17:00:26 -04:00
Eric MacDonald
36a2aebe17 Remove wtv-lzpf detection to do stream comp outside sendToClient 2021-08-07 16:43:48 -04:00
Eric MacDonald
7a69d3e8da Remove Zefie's chunking and async stuff. Will revisit later. Fixing alg first. 2021-08-07 15:11:18 -04:00
zefie
3da637dfb0 update: compression system: make asynchronous 2021-08-06 16:24:55 -04:00
zefie
ad16a04c55 update: do not delete WTVSec on last socket, instead recreate on prereg
update: clean up SSID session data only if client is not seen for 3 minutes
update: add shouldWeCompress() function
update: tweak lzpf (still corrupted)
update: rename wtv-setup:/get to wtv-setup:/get-settings
update: add additional headers to wtv-setup:/get-settings
update: add initial blank wtv-music:/get-playlist
2021-08-06 14:05:27 -04:00
Eric MacDonald
849467939c Change scope of clen so we can use and abuse it 2021-08-06 02:02:22 -04:00
Eric MacDonald
f12717bfef Add Lzpf compression 2021-08-06 01:42:27 -04:00
zefie
743989d4f0 update: WTVClientCapabilities: add unknown bits instead of logging error
update: fix flashrom system
update: webone example config
update: app.js: more 'binary block' exclusions
update: fix tellyscript folder name for case-sensitive filesystems
2021-08-06 01:13:35 -04:00
zefie
60dc9bcc4c update: app.js: enable graceful shutdown with SIGTERM 2021-08-05 17:59:53 -04:00
zefie
5d48c58c1d http(s) proxy updates:
- allow ~ character
- fix HTTPS when using HTTP proxy
- include example webone.conf for external HTTP Proxy
2021-08-05 16:54:39 -04:00
zefie
3187236c27 update: app.js: getServiceString overrides should only be temporary for that request 2021-08-03 23:09:48 -04:00
zefie
6e9e84abf0 v0.9.9
- update: config.json: add DoNotEncrypt flags to http and https
- update: app.js: add ability to override service flags when using getServiceString
- update: app.js: add ability to disable 'wtv-star' while keeping 'wtv-*'
- update: app.js: add internal header 'minisrv-use-carriage-return', set to 'false' to disable `\r` in headers
- implement bf0app flashrom functionality
2021-08-02 14:47:11 -04:00
zefie
150f0253b8 v0.9.8
fix: app.js: Use \r\n, fix connections= service setting
update: config.json: fix some service flags that were misset
Add ServiceFlags.txt: brief description of wtv-service flags
update: Moved tellyscripts to wtv-1800:/preregister
update: fixed bug where "send_tellyscript was undefined"
update: initial work on bf0app flashrom support (incomplete)
2021-07-29 19:21:22 -04:00
zefie
63eeb3245a update: app.js: add special filtering for Dreamcast clients 2021-07-26 14:02:05 -04:00
zefie
822136f1ea update: app.js: add logging errors to file 2021-07-26 07:59:02 -04:00