sashakoshka
a592426c46
providers/log: Stop pretending to be providers/mime
2024-12-13 13:44:52 -05:00
sashakoshka
60309a14a0
Add double close error
2024-12-13 13:30:50 -05:00
sashakoshka
9e3955f92f
cmd/stepd: Initialize initializers
2024-12-13 13:05:15 -05:00
sashakoshka
32fd1ebfd6
Add Initializer interface
2024-12-13 13:05:02 -05:00
sashakoshka
8c0f78a3f7
Add error for impossible situations
2024-12-13 13:04:22 -05:00
sashakoshka
60c52ee4ce
cmd/stepd: Be able to trim multiple things
2024-12-12 18:12:22 -05:00
sashakoshka
df7c49247b
Create Trimmer interface
2024-12-12 18:12:22 -05:00
sashakoshka
424eebde84
Relicense under AGPL
2024-12-12 15:16:36 -05:00
sashakoshka
881c2ba7d6
providers/mime: Why was that const there? lollll
2024-12-12 14:00:48 -05:00
sashakoshka
ff1e73ce6d
Add logging provider
2024-12-12 12:38:06 -05:00
sashakoshka
695e94ef3e
providers/os: Fix file mode!!!! Oh my god!!!!
2024-12-12 12:06:06 -05:00
sashakoshka
afe6d6689f
Fix badge on README
2024-12-12 03:32:46 -05:00
sashakoshka
726cd5b059
Make README.md nicer
2024-12-12 03:31:39 -05:00
sashakoshka
da7b3ad950
Add comments to metadata
...
Closes # 17
2024-12-12 03:13:14 -05:00
sashakoshka
67d4f8a10a
Add support for HTTP rate limiting
...
Closes #16
2024-12-12 03:10:30 -05:00
sashakoshka
e8a9435a1b
Update go-cli
2024-12-12 01:21:36 -05:00
sashakoshka
ebe4c80400
openrc: Make the init script more basic
2024-12-12 01:10:57 -05:00
sashakoshka
77afd0dcd1
Add install target for openrc init script
2024-12-12 01:10:35 -05:00
sashakoshka
8a92a24536
providers: Update all.go
2024-12-12 00:27:55 -05:00
sashakoshka
58c9266dd6
providers/import: Reading the config actually works now
2024-12-12 00:27:34 -05:00
sashakoshka
876c7d1a1b
providers/validate: Add more functions
2024-12-12 00:27:13 -05:00
sashakoshka
a7e8c337db
providers/strings: Add string functions provider
2024-12-12 00:26:22 -05:00
sashakoshka
99e244fa92
providers: Add validation functions
2024-12-11 21:44:34 -05:00
sashakoshka
588061e3e0
providers/slice: Remove because sprig has lists
2024-12-11 20:57:59 -05:00
sashakoshka
ad8a2a7c25
providers/import: Remove panic function, because sprig has fail
2024-12-11 20:56:09 -05:00
sashakoshka
461abe6cf4
providers/import: Add ability for templates to read step.meta
2024-12-11 20:40:23 -05:00
sashakoshka
06c788d997
Improve www-template
2024-12-11 12:23:58 -05:00
sashakoshka
9aa1695d53
Add www examples
...
Closes #10
2024-12-11 03:35:53 -05:00
sashakoshka
b41540e091
openrc: Tell stepd to write logs
2024-12-11 03:17:40 -05:00
sashakoshka
0f3c563dbf
cmd/stepd: Set up logging after dropping privelege
...
This has to be done because we can't just create a log file as
root and not be able to open it later
2024-12-11 03:13:07 -05:00
sashakoshka
728d50f6b5
openrc: Make init script executable
2024-12-11 02:59:04 -05:00
sashakoshka
45b8eb2a26
Fix install target
2024-12-11 02:54:46 -05:00
sashakoshka
7e708f84f1
Never mind, maybe root shouldn't be building things
2024-12-11 02:53:23 -05:00
sashakoshka
ce6c5b6285
cmd/stepd: Surpress some go vet warnings
2024-12-11 02:50:20 -05:00
sashakoshka
f8b739ac4d
cmd/step: Fix calls to template parsing/loading functions
2024-12-11 02:43:46 -05:00
sashakoshka
09fa576873
Make check target work
2024-12-11 02:42:14 -05:00
sashakoshka
5ba3dfd26f
Improved Makefile install target
2024-12-11 02:41:06 -05:00
sashakoshka
b865dd251c
Improve Makefile
2024-12-11 02:32:08 -05:00
sashakoshka
cbc31b64a8
Add Makefile
2024-12-11 02:28:24 -05:00
sashakoshka
0a040cad92
Ignore build directory
2024-12-11 02:28:15 -05:00
sashakoshka
c48e67e022
openrc: Add untested init script
2024-12-11 02:00:52 -05:00
sashakoshka
f8bbf7f3fc
cmd/stepd: Add privelege dropping
2024-12-11 02:00:24 -05:00
sashakoshka
d24cf1cdc1
cmd/stepd: Remove periods in help text
2024-12-11 01:04:51 -05:00
sashakoshka
32d10ef7c6
providers/http: Remove unnecessary FIXME
2024-12-10 22:07:30 -05:00
sashakoshka
79ac18c8c3
providers/http: Make redirect function better
2024-12-10 21:32:50 -05:00
sashakoshka
efc3fc0990
http: Add an HTTP redirect senteniel error
2024-12-10 21:32:12 -05:00
sashakoshka
bf668b0cf7
Things I did while unable to commit
...
- Log rotation
- Execution cancellation
- HTTP redirect, error functions
- Changed naming of document parsing/loading functions
2024-12-10 20:37:40 -05:00
sashakoshka
f112a2e564
Plugins work now oughghgghughgghg
2024-12-10 15:51:34 -05:00
sashakoshka
c2ccaff8ab
Progress on plugin loading
2024-12-10 14:03:02 -05:00
sashakoshka
df7f3bdadc
Ignore shared objects
2024-12-10 14:02:53 -05:00
sashakoshka
d694a8acf6
examples/testplugin: Add test plugin example
2024-12-10 14:02:21 -05:00
sashakoshka
4c3f0056fd
cmd/stepd: Load plugins from STEP_PLUGIN_PATH
2024-12-10 13:25:32 -05:00
sashakoshka
209270a179
Add untested plugin support
2024-12-10 13:25:20 -05:00
sashakoshka
9a6607494f
cmd/stepd: List all loaded providers on startup
2024-12-10 12:53:15 -05:00
sashakoshka
ab167234d0
Providers are now required to state their name/package
2024-12-10 12:22:58 -05:00
sashakoshka
4a1b78b857
cmd/stepd: Fix pid file being spawned even if not specified
2024-12-10 02:58:50 -05:00
sashakoshka
666a9b0c77
cmd/step: Fix setting providers
2024-12-10 02:53:54 -05:00
sashakoshka
eb7da68de6
providers/os: readDir now returns a slice of fs.DirEntry
2024-12-10 02:18:42 -05:00
sashakoshka
dc378008d6
cmd/stepd: Add config key and arguments for the directory document
2024-12-10 02:12:14 -05:00
sashakoshka
70a1194bca
http: Add the ability to serve a directory
2024-12-10 02:11:45 -05:00
sashakoshka
68c8deb269
cmd/stepd: Automatically forbid the configuration file
2024-12-10 00:39:25 -05:00
sashakoshka
7480742e9e
http: Add mechanism to forbid certain files/directories
2024-12-10 00:38:47 -05:00
sashakoshka
11e8e7460a
cmd/stepd: Configuration file is read and used for the HTTP server
...
Closes #7
2024-12-10 00:29:33 -05:00
sashakoshka
d4d882c40e
Rename Environment.Conf to Config
2024-12-09 23:36:02 -05:00
sashakoshka
a2680c40d2
Silly idea I had
2024-12-09 23:34:14 -05:00
sashakoshka
8084b7749a
Environment configures providers
2024-12-09 23:27:58 -05:00
sashakoshka
433a112875
Add Provider interface
2024-12-09 22:57:59 -05:00
sashakoshka
952ce8f184
Rename plugin.go to provider.go in accordance with #12
2024-12-09 19:32:45 -05:00
sashakoshka
adcb195f78
Add configurable interface
2024-12-09 18:22:48 -05:00
sashakoshka
380a5b9223
Metadata keys can have multiple values
...
Closes #6
2024-12-09 15:53:29 -05:00
sashakoshka
ccff4e56c0
Add DecodeMeta function for decoding metadata from an io.Reader.
2024-12-09 13:48:55 -05:00
sashakoshka
43084fb5bb
Add ability to parse quoted strings in meta
...
This should actually make migration from Caddy easier, because
Caddy's YAML front matter seems to support quoted strings? IDK,
the current Holanet has them. Closes #11
2024-12-09 12:56:16 -05:00
sashakoshka
b14d92205c
Rename a bunch of internal things from frontmatter to meta
2024-12-09 11:58:23 -05:00
sashakoshka
37022e051a
Rename front matter errors to meta errors
2024-12-09 11:56:20 -05:00
sashakoshka
847eff17b9
Split ParseMeta out of SplitMeta
2024-12-09 11:54:53 -05:00
sashakoshka
88c5ef2922
Rename frontmatter.go files to meta.go equivalents
2024-12-09 02:23:06 -05:00
sashakoshka
67480bb974
Rename FrontMatter to Meta
2024-12-09 02:22:37 -05:00
sashakoshka
c618d7bc5e
Add .editorconfig
2024-12-08 20:24:19 -05:00
sashakoshka
a12377b7d6
Ignore stepd.pid
2024-12-08 20:23:50 -05:00
sashakoshka
04149fe218
cmd/stepd: PID file is properly removed now
2024-12-08 20:22:35 -05:00
sashakoshka
e79417ec9d
cmd/stepd: Add periods in the help text
2024-12-08 20:05:04 -05:00
sashakoshka
b6cd237ed3
cmd/stepd: Serve a named directory
...
Closes #8
2024-12-08 20:02:28 -05:00
sashakoshka
d06b03bbfe
cmd/stepd: Write PID file
...
Closes #9
2024-12-08 19:45:14 -05:00
sashakoshka
deb3d7e935
providers/slice: Make the slice functions way better
2024-12-08 19:20:18 -05:00
sashakoshka
947cbc1440
Add type mismatch error
2024-12-08 16:12:54 -05:00
sashakoshka
860d083c11
providers/mime: use Document.Rel
2024-12-08 03:28:57 -05:00
sashakoshka
52b8b5a347
providers/import: use Document.Rel
2024-12-08 03:28:48 -05:00
sashakoshka
25541dadfe
providers/os: use Document.Rel
2024-12-08 03:28:33 -05:00
sashakoshka
cc13abd8f8
Documents now make use of relative paths to parse parent documents
2024-12-08 02:57:49 -05:00
sashakoshka
f1fccdc2ae
Add ParseRelative to Environment
2024-12-08 02:51:13 -05:00
sashakoshka
3c9f91a2c9
Add Abs method on Document
2024-12-08 02:51:01 -05:00
sashakoshka
17b6253211
Add Abs method to Document
2024-12-08 02:18:14 -05:00
sashakoshka
efb1f455c9
http: Wrap the recorder instead of the actual response writer
2024-12-08 01:55:02 -05:00
sashakoshka
6f635825a9
http: Make methods of .Data.Res actually work
2024-12-08 01:50:15 -05:00
sashakoshka
3c9eb01790
providers/os: Add appendFile
2024-12-08 01:30:00 -05:00
sashakoshka
889850c04c
Move all http stuff into the http package
2024-12-08 01:01:10 -05:00
sashakoshka
6f04353512
providers/import: Add panic function
2024-12-08 01:00:50 -05:00
sashakoshka
b654829428
providers: Add mime provider
2024-12-08 00:08:38 -05:00
sashakoshka
d76374719d
providers: Add slice functions provider
2024-12-07 22:18:45 -05:00
sashakoshka
7f64686323
providers/os: isFile, isDir no longer return errors, just false
2024-12-07 21:51:57 -05:00