This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update +TARGETS Add new Target for syslog-ng template * Create caddy.conf Add template for syslog-ng. - Creates a unix datagram socket: /var/caddy/var/run/log - Parses and rewrites the <PRI> based on the level in Caddy logs - rewrites the program name to "caddy" - outputs the log file * Update Menu.xml Change Menu to new logging view * Update +POST_INSTALL.post Added syslog-ng restart so the configuration generated by the template will be loaded automatically. * Update +POST_DEINSTALL.post - Adjusted deinstall script for new template generated files. * Update Caddyfile Change logging to unixgram to connect caddy logs to syslog-ng in the OPNsense to leverage the standard logging features. * Delete usr/plugins/devel/caddy/src/opnsense/scripts/Pischem/Caddy/caddy_log.py Cleanup logging refactor * Delete usr/plugins/devel/caddy/src/opnsense/mvc/app/views/Pischem/Caddy/log.volt Cleanup logging refactor * Delete usr/plugins/devel/caddy/src/opnsense/mvc/app/controllers/Pischem/Caddy/LogController.php Cleanup logging refactor * Delete usr/plugins/devel/caddy/src/opnsense/mvc/app/controllers/Pischem/Caddy/Api/LogController.php Cleanup logging refactor * Update actions_caddy.conf Cleanup logging refactor Removed showlog action * Update dialogHandle.xml #73 * Update Caddy.xml Add: - Access Log - Log Credentials - Desec DNS Provider * Update general.xml - Add LogCredentials Field - Rename Reject Unmatched Connections to Abort Connections * Update ReverseProxyController.php * Update reverse_proxy.volt * Update dialogReverseProxy.xml - Add Access Log Field for HTTP request logging * Update Caddyfile - Credential Logging and HTTP Access Log added, which can be enabled per domain.
- Loading branch information
Showing
17 changed files
with
129 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Remove the Caddy service script | ||
if [ -f /usr/local/etc/rc.d/caddy ]; then | ||
echo "Removing file: /usr/local/etc/rc.d/caddy" | ||
rm -f /usr/local/etc/rc.d/caddy | ||
fi | ||
# This deinstall script removes all generated template files since they are unknown by pkg. | ||
|
||
# Remove the /etc/rc.conf.d/caddy file | ||
if [ -f /etc/rc.conf.d/caddy ]; then | ||
echo "Removing file: /etc/rc.conf.d/caddy" | ||
rm -f /etc/rc.conf.d/caddy | ||
fi | ||
|
||
echo "Caddy deinstallation completed." | ||
# Remove the /usr/local/etc/syslog-ng.conf.d/caddy.conf file | ||
if [ -f /usr/local/etc/syslog-ng.conf.d/caddy.conf ]; then | ||
echo "Removing file: /usr/local/etc/syslog-ng.conf.d/caddy.conf" | ||
rm -f /usr/local/etc/syslog-ng.conf.d/caddy.conf | ||
fi | ||
|
||
# Trigger a syslog-ng restart to remove the caddy unix socket cleanly | ||
echo "restart syslog-ng" | ||
configctl syslog restart | ||
|
||
echo "Caddy deinstallation completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
usr/plugins/devel/caddy/src/opnsense/mvc/app/controllers/Pischem/Caddy/Api/LogController.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
usr/plugins/devel/caddy/src/opnsense/mvc/app/controllers/Pischem/Caddy/LogController.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 0 additions & 108 deletions
108
usr/plugins/devel/caddy/src/opnsense/mvc/app/views/Pischem/Caddy/log.volt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.