Commit Graph

335 Commits

Author SHA1 Message Date
kim (grufwub)
5957b7e588 stop using CGO for compiled binaries
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 14:24:09 +01:00
kim (grufwub)
103a849952 update note about development branch
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 13:47:34 +01:00
kim (grufwub)
7aa11612d1 add checks before generating and adding policy files
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 13:45:43 +01:00
kim (grufwub)
8c1905a287 rename the project to gophi!
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 13:25:45 +01:00
kim (grufwub)
54e135666d update todo list
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 13:10:01 +01:00
kim (grufwub)
50cd4f2cfe undo separate variable declarations, CGI stderr = nil, formatting changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 13:08:30 +01:00
kim (grufwub)
7c9e09bb3f add scrap paper todo list
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 10:30:42 +01:00
kim (grufwub)
51560e4b18 add code comments
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 10:30:26 +01:00
kim (grufwub)
90b18905ce add replacement strings support, reuse variables with loops (less allocs)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 10:09:29 +01:00
kim (grufwub)
13b361f5fd improve CGI docs
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 09:21:35 +01:00
kim (grufwub)
1fbfe88bb2 update CGI implementation to include more required variables
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 09:21:13 +01:00
kim (grufwub)
8b902a637e fix doc linking to not use URLs
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 22:08:28 +01:00
kim (grufwub)
b12f06618f fix document linking
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 22:07:14 +01:00
kim (grufwub)
26e6c86d24 update server description
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 12:52:53 +01:00
kim (grufwub)
dd6adbdde6 improve argument descr string, improve restricted path regex matching
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 12:47:10 +01:00
kim (grufwub)
e3c57da7a7 fix readme doc links
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 12:46:35 +01:00
kim (grufwub)
61086789d9 update README.md and move information to documents under docs/
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-12 12:43:42 +01:00
kim (grufwub)
df69005b09 version bump + change build script version checker
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-11 22:11:45 +01:00
kim (grufwub)
6c9cd34e4f add go module file
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-11 22:09:25 +01:00
kim (grufwub)
6bca9ffa8f update README
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-11 22:04:28 +01:00
kim (grufwub)
75cfbc0c65 gophor rewrite
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-11 21:59:44 +01:00
an hacker
ebe414d8f3
Update README.md 2020-07-11 10:12:48 +01:00
kim (grufwub)
0fb49c4ae9 small improvement to sane defaults and setting up global logger
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-17 10:15:01 +01:00
Kim
9b18a9caeb
Merge pull request #16 from grufwub/development
Development pull v1.0-beta
2020-05-17 10:00:45 +01:00
kim (grufwub)
c9ffda1ae5 version bump :)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-17 09:56:22 +01:00
kim (grufwub)
f12eb57c3a update CGI SERVER_PROTOCOL to "gopher"
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-17 09:40:01 +01:00
kim (grufwub)
beef4c80b5 remove build-one script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-16 21:34:22 +01:00
kim (grufwub)
32f55ae57f modify script to try attempt --best and regular upx compression before giving up
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-16 21:31:04 +01:00
kim (grufwub)
0ecb89cec4 update build-script with more versions
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-16 21:22:09 +01:00
kim (grufwub)
35ae197bc2 ensure BufferedDeadlineConn adheres to SocketReadMax
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-15 13:33:09 +01:00
kim (grufwub)
6bdeb86863 major underlying changes
- remove GophorConn, instead make Worker the object that
  holds onto Host, Client, RootDir etc

- create BufferedDeadlineConn to wrap DeadlineConn and wrap all
  read/write operations in buffered operations

- Have Responder hold onto BufferedDeadlineConn instead of writer

- version bump :)

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-15 13:29:04 +01:00
kim (grufwub)
06103d60c0 add to todos
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-15 10:29:20 +01:00
kim (grufwub)
0514366cbb update version string
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 21:18:22 +01:00
kim (grufwub)
f68aec3731 fix socket-write-timeout description
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 21:17:36 +01:00
kim (grufwub)
4852573114 update file remap wording
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 21:16:23 +01:00
kim (grufwub)
2062a0318a add file remapping usage to features list
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 21:14:34 +01:00
kim (grufwub)
839473750e move most of code from format.go --> gopher.go
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 20:36:57 +01:00
kim (grufwub)
dba96a6f97 add socket read/write deadline flags to usage section
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:30:58 +01:00
kim (grufwub)
66c1f446eb slight rewording
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:17:40 +01:00
kim (grufwub)
d9684e06c8 add error checking to fail-out when failing to render gophermap section
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:15:51 +01:00
kim (grufwub)
d16d7b6972 correct URL encoding item in features list
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:55:06 +01:00
kim (grufwub)
8a67a88660 use net/url's path parser, pass more Request objects round instead of RequestPath
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:54:06 +01:00
kim (grufwub)
9a57822766 update with status of text and string encoding
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:52:19 +01:00
kim (grufwub)
89b76c0aa4 update code comment
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:15:28 +01:00
kim (grufwub)
2ce15bb00d update features to more accurately reflect gophermap usage and handling
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:14:51 +01:00
kim (grufwub)
3ca8450a84 update gophermap + cgi-bin path checks to use regex (should be more reliable)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:10:31 +01:00
kim (grufwub)
5aa62ebfa7 improve file remap regex matching
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 14:04:16 +01:00
kim (grufwub)
d927113b42 update README.md with file-remap usage information
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:53:16 +01:00
kim (grufwub)
c4b814cacd update README.md to remove in-line command references
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:51:01 +01:00
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