kim (grufwub)
303a6bbcd0
remove in-line shell command support, add initial remap (according to regex) support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:48:21 +01:00
kim (grufwub)
0b8c3b41ba
add virtual filesystem support (remapping file paths)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 20:52:25 +01:00
kim (grufwub)
6576d436f7
move constants to config (user modifiable), support CGI header stripping
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 17:08:06 +01:00
kim (grufwub)
3a41efcc5b
huge changes
...
- massively improve request handling -- passes request object between
functions now to encapsulate all the data needed
- writing is now handled by the passed request object with attached
writer
- files > max cached file size and fed directly to socket now instead
of read into buffer first (which would have caused MAJOR memory issues)
- CGI support further fleshed out, and timer started for child processes
that attempts to kill them if they don't clean up in time
- probably many more fixes i'm forgetting
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:46:50 +01:00
kim (grufwub)
4ea4280cd0
add support for disabling CGI support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 09:35:29 +01:00
kim (grufwub)
6cd6adecca
move requestpath contents into filesystemrequest, which is passed everywhere instead of individual variables
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 18:19:56 +01:00
kim (grufwub)
14f181372d
add CGI environment variables (unset) according to CGI spec
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:49:19 +01:00
kim (grufwub)
eac520031a
inline shell commands, executable gophermaps, initial cgi-bin support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 22:42:51 +01:00
kim (grufwub)
41d6f279fc
replace logging system + add support for log options + toggleable output
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 22:34:49 +01:00
kim (grufwub)
ac20b9d6b3
move RootDir variable to be stored in ConnHost (will help with virtual hosts in future)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 08:42:12 +01:00
kim (grufwub)
5cb9a6cb9e
add footer text support + move last-line addition to footer text
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 13:58:29 +01:00
kim (grufwub)
74cb7dde76
fix comment referring to old struct name
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 12:48:44 +01:00
kim (grufwub)
5dca694849
remove newline after URL redirect log, add access errors
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 12:26:45 +01:00
kim (grufwub)
06eca4d50a
major rework to worker response logic
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-29 18:28:51 +01:00
kim (grufwub)
0f2a2099f2
improve code commenting
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-24 12:09:54 +01:00
kim (grufwub)
3fb83b520e
update file logic to pass 'connHost' when rendering contents, ready for TLS / virtual hosts
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-23 20:39:31 +01:00
kim (grufwub)
c45d62899c
rework the configuration and program flag setting system
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-22 19:42:54 +01:00