Commit Graph

308 Commits

Author SHA1 Message Date
kim (grufwub)
06324a7057 more closely follow our own compliance for info/title lines
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:58:28 +01:00
kim (grufwub)
5756b46cdc add code comments to fixed map
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:57:56 +01:00
kim (grufwub)
078d63064e update README.md with re-written item types, section on compliance etc
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:46:39 +01:00
kim (grufwub)
b953fe846c add in support for new flags referenced in policy.go
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:46:14 +01:00
kim (grufwub)
1b21e1571e cachemap+filelist --> fixedmap implementation, delete on file stat fail
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:44:48 +01:00
kim (grufwub)
f3295013d9 fix use of CrLf with DOSLineEnd
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 20:44:14 +01:00
kim (grufwub)
43dd39e597 add functions to auto-generate robots.txt and caps.txt
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 19:00:13 +01:00
kim (grufwub)
c8be4a3ea0 remove TLS port from usage instructions for now
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 16:01:26 +01:00
kim (grufwub)
17c7e01768 update item types section of README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 16:00:08 +01:00
kim (grufwub)
5f2fcead64 additional chdir("/") made after chroot performed
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 15:59:36 +01:00
kim (grufwub)
3a957b1729 add function pointers for getItemType()
To the human eye it reads a little clunky, but it means we can set
the correct function pointer when evalutating flags and not have to
constantly check if RestrictedFilesRegex variable is nil or not during
runtime.

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 15:21:54 +01:00
kim (grufwub)
e265635b7c add restrict-files to usage section of README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 13:46:26 +01:00
kim (grufwub)
294745494b correct 'RestrictedFiles' flag description
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 13:45:22 +01:00
kim (grufwub)
574451cc9b Add support for regex-matched file restrictions in dir listings
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-19 13:42:56 +01:00
kim (grufwub)
c7db7a2cb4 add better support for item type title
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-18 23:05:25 +01:00
kim (grufwub)
b2c2009616 add todo item to README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-18 15:33:28 +01:00
Kim
6a21af3686
Merge pull request #3 from grufwub/development
Add support for either DOS / Unix line-endings in any files.
2020-04-17 19:00:59 +01:00
kim (grufwub)
a48efddbc9 update README.md to remove items
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 18:51:53 +01:00
kim (grufwub)
5b18a9756f add support for DOS or Unix line endings in all files
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 18:51:30 +01:00
Kim
d7b96f076f
Merge pull request #2 from grufwub/development
Refactor file cache code, fix bugs introduced, add ".." to directory listings.
2020-04-17 18:21:09 +01:00
kim (grufwub)
4390624ff8 add todo item to README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 18:13:03 +01:00
kim (grufwub)
f9b11d79e5 fix bugs introduced with latest changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 18:12:36 +01:00
kim (grufwub)
fd9bf2a9aa update todo list to reflect newly finished features
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 16:52:41 +01:00
kim (grufwub)
7b834eb479 refactor most of file reading/caching code to use one global cache
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 16:39:25 +01:00
kim (grufwub)
51b0b43398 separate info line creation into new function
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-17 09:14:07 +01:00
kim (grufwub)
a8d78d2182 add more todos to README
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 17:09:18 +01:00
kim (grufwub)
8297624463 add error string for InvalidGophermapErr
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 11:41:33 +01:00
Kim
cdcca11719
remove gc-ballast from usage 2020-04-16 11:39:19 +01:00
kim (grufwub)
01054c5827 remove gc-ballast code and move to separate feature branch (for now)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:46:08 +01:00
kim (grufwub)
f2e6ecf154 slight change to GC ballast implementation
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:27:47 +01:00
kim (grufwub)
7a174d8f08 Reduce length of C bindings comment
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:24:25 +01:00
kim (grufwub)
7b4ae11e13 Merge branch 'master' of github.com:grufwub/gophor 2020-04-16 09:23:52 +01:00
kim (grufwub)
18fe548c18 add gc-ballast flag
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:23:42 +01:00
Kim
6964094301
update GC-ballast section 2020-04-16 09:19:50 +01:00
kim (grufwub)
56caa60cf5 add support for garbage-collector ballast
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:14:10 +01:00
kim (grufwub)
ca64adb0c1 ignore *.old files (these are part of my weird dev flow)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-16 09:13:18 +01:00
kim (grufwub)
3e87f5d931 fix README.md typo
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 22:24:13 +01:00
kim (grufwub)
e1431ff620 Merge branch 'master' of github.com:grufwub/gophor 2020-04-15 21:37:49 +01:00
kim (grufwub)
a064973913 update README.md from previous change
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 21:36:37 +01:00
kim (grufwub)
e9a8a1c1e8 support for replacement string '$hostname' in gophermap files
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 21:34:19 +01:00
Kim
0fc1e919fd
Update README.md 2020-04-15 19:59:12 +01:00
kim (grufwub)
51691b35e0 improve 'Features' section of README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 19:42:07 +01:00
kim (grufwub)
d87e974c6b add TODO comments + remove unused global constant
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 19:41:00 +01:00
kim (grufwub)
b8819d2b5e add page-width + auto truncating subgophermap support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 19:32:28 +01:00
kim (grufwub)
07e264c588 fix missing comma in map declaration...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:23:35 +01:00
kim (grufwub)
88e7155bec update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:23:04 +01:00
kim (grufwub)
dbae6645e2 update list of file extensions
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:22:24 +01:00
kim (grufwub)
1f3771e8c7 fix minor typo
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:14:18 +01:00
kim (grufwub)
c8b7adfa18 update README.md to match using new build script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:09:53 +01:00
kim (grufwub)
9cb94363b0 add simple build script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 17:09:10 +01:00