DL6ER
67fdf2915b
Fix conditional for readline inclusion in LUA code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-19 08:56:14 +02:00
DL6ER
20173437ad
Merge branch 'development-v6' into new/clang
2024-05-18 20:38:56 +02:00
DL6ER
e286d4b147
Properly guard X.509 functions to allow compiling FTL without mbedTLS library being available, also improve how definitions are done in src/CMakeLists.txt and reduce instruction-duplication on the way
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 17:11:42 +02:00
DL6ER
f894910326
Remove explicit static instructions - binaries compiled on alpine will balways e linked statically
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 10:59:40 +02:00
Olliver Schinagl
7de24a09e3
FTL_lua: Properly guard readline
...
Readline support should only be used when we know it is available. Lets
properly use a ifdef guard like we do in `shell.c`.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl >
2024-05-10 19:17:12 +02:00
DL6ER
858b0f1ed9
Provide theme details through Lua function pihole.webtheme() now returning a full table instead of only a string. Everything concerning theme definition is moved into api/themes.{c,h}
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-09-26 10:13:34 +02:00
DL6ER
19c72d354e
!!! BREAKING CHANGE !!! Switch to the proven memory-hard password-hashing alogorithm BALLOON. The stored password hash will be upgraded on the first successdful login. To wave the necessity to implement BALLOON with every client trying to access the API, we remove the existing challenge-response authentication in favor of allowing login straight with the password. This has been avoided in the past, however, seems now acceptable that FTL (even by default) offers secure end-to-end encryption over HTTPS.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-05-30 21:22:45 +02:00
DL6ER
d42d4be97b
Add webserver.tls.rev_server boolean useful to tell FTL that unencrypted connections are still secure (in the context of Pi-hole solely being reachable through a reverse proxy)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-05-28 14:45:03 +02:00
DL6ER
fe3ed0bb74
Add LUA pihole.needLogin(remote_addr)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-05-28 08:16:27 +02:00
DL6ER
8966c718dc
Keep query string when redirecting from /abc.lp to /abc
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-05-27 13:07:36 +02:00
DL6ER
d86a2f1c95
Add pihole.webhome() and add settings + group pages deep URI rewrite
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-05-26 21:50:26 +02:00
DL6ER
c1d07cbb63
Add new LUA functions useful for the web interface and define .lp files as index files
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-04-26 21:01:10 +02:00
DL6ER
d066946e3f
Print embedded libraries in pihole-FTL -vv
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-11-25 12:07:46 +01:00
DL6ER
395e0792d8
Use luaL_loadbufferx to pass name directly to interpreter
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-11-20 13:56:42 +01:00
DL6ER
0fea2d586b
Add facility to embedd LUA scripts into FTL and run them during luainit
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-11-20 12:57:39 +01:00
DL6ER
112beb4214
Add drop-in replacement support for luac as well
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-12-09 22:50:56 +01:00
DL6ER
4610a05749
Expose lua-interpreter as virtual pihole-lua binary
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-12-09 22:27:02 +01:00
DL6ER
176be7b2dc
Update LUA 5.4.0 -> 5.4.1
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-11-19 00:10:44 +01:00
DL6ER
211087dc66
Remove shm data sourcing. We will query such data through the API with Pi-hole v6.0
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-08-03 04:25:22 +02:00
DL6ER
2f6b2a1356
Add pihole.query([idx])
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-08-03 04:16:00 +02:00
DL6ER
edd85242dd
Automatically load bundled libraries and make them available globally.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-08-03 04:16:00 +02:00
DL6ER
c2c5f20eef
Add ability to connect to shared memory of the running FTL process
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-08-03 04:15:58 +02:00
DL6ER
802a26db64
Add Pi-hole extension to LUA, first test routine is pihole.ftl_version()
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-07-22 18:51:57 +02:00