DL6ER
00d6ae6bd6
Add config option ftl.gravity_tmp
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-12-01 10:26:18 +01:00
DL6ER
215a683069
Merge branch 'development-v6' into new/recycle
2023-11-29 21:57:10 +01:00
DL6ER
71d726c174
Remove deprecated dhcp.domain setting
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-28 11:05:08 +01:00
DL6ER
b2884505ab
Merge branch 'development-v6' into new/recycle
2023-11-26 10:41:42 +01:00
DL6ER
0734a2769a
Include PID of the currently running FTL instance in the logs response. This allows clients to easily detect when FTL is restarted to reset their nextID to zero.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-23 09:36:51 +01:00
DL6ER
7f0a0a77da
Add "unicode" field to API response for GET /api/domain
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-19 22:54:19 +01:00
DL6ER
2dbb7f3b63
Merge pull request #1731 from pi-hole/fix/dhcp-range
...
Improve DHCP handling
2023-11-16 22:25:09 +01:00
DL6ER
6424cf0316
Merge pull request #1739 from pi-hole/tweak/dns-domain
...
Move dhcp.domain -> dns.domain
2023-11-13 22:21:36 +01:00
DL6ER
d43b0eed28
Add deprecation note for dhcp.domain
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-13 09:25:32 +01:00
DL6ER
af1af596fd
Merge pull request #1734 from pi-hole/new/etc_dnsmasq_d
...
Make inclusion of /etc/dnsmasq.d/*.conf files configurable
2023-11-12 21:27:53 +01:00
DL6ER
5dc17a1ed3
Move dhcp.domain -> dns.domain
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-07 08:47:39 +01:00
DL6ER
6e860f0c81
Add special reply for reused TOTP tokens
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-06 11:35:26 +01:00
DL6ER
28fe8dd499
Return 429 Too Many Requests with useful hint when number of available API seats is exceeded, also log currently configured number of API seats in the issues warning
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-06 10:38:15 +01:00
DL6ER
ca97616ed1
Add config option misc.etc_dnsmasq_d to allow setting whether files in /etc/dnsmasq.d are loaded as additional config files for Pi-hole. This resolves a long standing issue with Pi-hole not being compatible with software that installs custom files with conflicting lines in this directory (e.g., lxc) as well as improve the coexistence of Pi-hole with an already running dnsmasq on the host (by default, we do not share any config files in the future)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-05 10:27:03 +01:00
DL6ER
add7ceadda
Make number of maximum concurrent API sessions adjustable
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-04 17:00:59 +01:00
DL6ER
75cd372d0e
Add string format verification in API checker
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-04 12:38:24 +01:00
DL6ER
6f2c6fe801
Add dhcp.netmask (type IPv4 address) and change the type of dhcp.{start,end,router} from string to IPv4 address to allow detection of invalid settings (e.g., "192.168.1.3000") early on
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-04 12:38:13 +01:00
DL6ER
91b0c23f84
Merge branch 'development-v6' into new/recycle
2023-11-04 08:05:03 +01:00
DL6ER
2efdfe999c
RapiDoc does not really support schemas without examples, so add a dummy example for /docs
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-03 06:52:32 +01:00
DL6ER
3a67a77a08
Report number of checked endpoints in the result and warn if the number of specified endpoints in FTL and the OpenAPI specs do not match
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-02 05:50:32 +01:00
DL6ER
253feef597
Merge branch 'development-v6' into fix/test_all_the_api
2023-11-02 05:32:16 +01:00
DL6ER
2eba3651d2
Fix all docs issues found by the improved API verification excluding the ones fixed by #1722
...
This currently returns:
Verifying the /api/endpoints endpoint...
Errors:
- Endpoint POST /action/reboot not found in FTL endpoints
- Endpoint POST /action/poweroff not found in FTL endpoints
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-11-02 05:31:46 +01:00
Christian König
f26c7b45c3
Remove traces of reboot and poweroff
...
Signed-off-by: Christian König <ckoenig@posteo.de >
2023-11-01 22:23:44 +01:00
DL6ER
c8391fdcd5
Merge pull request #1715 from pi-hole/new/search_punycode
...
/api/search/{domain}: Add IDN compatibility
2023-10-31 21:00:17 +01:00
DL6ER
bfd084e3e9
Add a comment about the new behavior to the API specs
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-30 10:05:38 +01:00
DL6ER
21ecfa3da5
GET /api/network/devices .devices.X.macVendor may be NULL
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-30 07:57:17 +01:00
DL6ER
f4e6dfc061
Implement deep-recursion of API arrays
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-30 07:42:51 +01:00
DL6ER
4fea41c4d9
Add missing .sessions.app boolean to the docs
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-30 05:40:44 +01:00
DL6ER
0b4abb2bd3
Optimize status and reply handling in the code. Add status object to /api/stats/summary
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-26 19:13:57 +02:00
DL6ER
e741ba4c94
Add app password support
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-23 18:13:12 +02:00
DL6ER
0700bf0f9d
Merge pull request #1689 from pi-hole/new/keep_sessions
...
Backup and restore API sessions to/from database
2023-10-28 17:33:16 +02:00
DL6ER
1d611309f8
Merge pull request #1700 from pi-hole/docs/api_auth_401
...
Fix API GET /api/auth documentation
2023-10-28 17:32:48 +02:00
DL6ER
c367d442dd
Documentation-only change: Add 401 being returned by the API for unauthorized access to GET /api/auth and add a few more examples
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-27 16:30:51 +02:00
DL6ER
c7f50a372a
Merge pull request #1629 from pi-hole/tweak/domain_array
...
Add ability to specify domains, lists, clients and group names as arrays
2023-10-26 22:34:33 +02:00
DL6ER
f2960cb703
Use more precise examples in the API documentation
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-26 00:03:59 +02:00
DL6ER
a2a8787239
Add new config option webserver.api.session.restore defaulting to true and move existing config option webserver.api.sessionTimeout -> webserver.api.session.timeout
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-22 08:51:11 +02:00
DL6ER
c951e253a5
Include number of active clients in the response of GET /api/stats/summary
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-21 18:44:38 +02:00
DL6ER
8bb7e57968
Merge branch 'development-v6' into tweak/domain_array
2023-10-17 21:39:03 +02:00
DL6ER
4f702355c0
Merge pull request #1665 from pi-hole/new/search_results
...
Add number of matches into /api/search/{domain} results
2023-10-16 23:21:17 +02:00
DL6ER
ab64721621
Include .results.total (will never be clipped) and remove .total (may have been clipped)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-15 11:23:20 +02:00
DL6ER
ba325b0e2c
Add number of matches into /api/search/{domain} results
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-14 21:06:48 +02:00
DL6ER
c5067b3a60
Merge pull request #1664 from pi-hole/new/error_pages
...
Add error pages support and extended webserver debugging option
2023-10-14 20:44:48 +02:00
DL6ER
425bb5a8ec
Add debug.webserver
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-14 15:31:24 +02:00
DL6ER
bc72fe6772
Merge branch 'development-v6' into tweak/domain_array
2023-10-13 20:12:03 +02:00
DL6ER
64baa94395
Add new config option webserver.api.searchAPIauth defaulting to false
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-13 18:51:49 +02:00
DL6ER
80d4a0efec
Merge pull request #1653 from pi-hole/tweak/api_auth_https
...
Add /api/info/login
2023-10-10 20:36:04 +02:00
DL6ER
10fd60b399
Add wildcard support for server-side Query Log (domain, client-ip, client-by-name, upstream)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-10 19:28:14 +02:00
DL6ER
188ddf66e6
Merge pull request #1666 from pi-hole/tweak/docs_host_port_protocol
...
Minor integrated docs changes
2023-10-17 22:09:03 +02:00
RD WebDesign
e43a67464c
Design changes on the API page
...
- apply the same color to every button and add hover effect;
- change header and fotter background;
- use display:flex on header and footer to better fit items;
- separate theme buttons from style buttons (on the footer);
- keeping visible outline to help navigation for visual impaired users;
2023-10-16 01:39:45 -03:00
DL6ER
7e1d55ee71
Make HTTPS scheme the default case and fix paths to allow loading of the favicon
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2023-10-15 12:52:28 +02:00