b660156ef7
Merge pull request 'make wantedScripts an ordered list' ( #3 )
...
Reviewed-on: #3
2025-11-23 20:17:27 +00:00
Claude
c01c6d0ba1
Change wantedScripts to ordered list format
...
This ensures scripts execute in the order they appear in the config file,
resolving the TODO in the README. The config format has been changed from
a table with script names as keys to an ordered list of script entries.
Changes:
- ctx.lua: Use ipairs() instead of pairs() to iterate in order
- config.lua: Update validation to handle new list structure
- conf.lua: Update example config to use new format
- README.md: Remove TODO and clarify execution order
New config format:
wantedScripts = {
{name = 'script1', config = {...}},
{name = 'script2', config = {...}}
}
2025-11-23 17:16:23 -03:00
b7f63801d4
add CLAUDE.md
2025-11-22 01:13:47 -03:00
08f17f812b
log when config is found
2025-05-02 18:47:58 -03:00
6e9f673d91
return 401
2025-05-02 18:47:54 -03:00
6e3705a6df
fix typos
2025-05-02 18:44:53 -03:00
8434492b18
add pleroma_restrict_unauthenticated_search.lua
2025-05-02 18:43:27 -03:00
2c1f155328
update README
2024-02-16 17:56:06 -03:00
84ff7bd1b6
update docs
2024-02-16 02:13:37 -03:00
7f8e86fbd8
lint pass
2023-10-26 22:19:08 -03:00
84cb21b26a
Merge pull request 'add config file validation' ( #2 ) from config-validation into mistress
...
Reviewed-on: #2
2022-12-07 18:50:30 +00:00
06b8173ecb
only run config validations on init callback
2022-12-07 15:49:45 -03:00
4d92a58349
add hook for init_by_lua_block
2022-12-07 15:40:48 -03:00
8354478e72
properly print config errors when loading config file
2022-12-07 15:30:22 -03:00
2d2a68b1c3
validate schema on module tests
2022-12-07 15:26:11 -03:00
d0fba27097
add test for incorrect table schema
2022-12-07 15:13:33 -03:00
48917659ca
fix validation for full tables
2022-12-07 15:12:43 -03:00
fd59059101
add draft for config schema validation
2022-12-07 14:57:07 -03:00
4848d28014
README: update wording
2022-12-07 02:03:23 -03:00
219f606db7
README: update wording
2022-12-07 02:02:43 -03:00
8d2f3330af
add install instructions
2022-12-07 02:00:48 -03:00
fb43b80e6b
show name of module that filtered request in logs
2022-12-07 01:49:00 -03:00
0c0b842370
add result of open
2022-12-07 01:35:57 -03:00
4ff5a915c9
emit log on not found
2022-12-07 01:34:32 -03:00
374871578d
add Makefile
2022-12-06 18:25:26 -03:00
d16e31c675
add config file loading
2022-12-06 18:24:25 -03:00
c15abe3c05
fix main script usage of ctx
2022-12-06 15:54:16 -03:00
5d21c975ea
add test suite
2022-12-06 15:53:20 -03:00
06924d10f6
let filters customize status code and body
2022-12-06 14:52:20 -03:00
a747fe8182
add initialization callback for filters
2022-12-06 14:52:09 -03:00
eefdecb1e9
use request uri and regex to choose callbacks
2022-12-06 13:48:09 -03:00
766b1d2aff
add draft codes
2022-12-06 00:36:15 -03:00
1bd95f289d
add README
2022-12-03 16:08:24 -03:00
3f3714aa97
Initial commit
2022-12-03 19:06:50 +00:00