156 Commits
Author SHA1 Message Date
MonviechandGitHub ec2181d8a3 www/caddy: Fix race condition that moved domain filter selectpicker into invisible tab, fix css (#5076) 2025-12-08 17:09:31 +01:00
MonviechandGitHub 840714060e www/caddy: Add changelog for sudo fix (#5036) 2025-11-18 21:28:19 +01:00
Franco Fichtner 9f23ada61d www/caddy: revision bump after trust store vs. sudo fix 2025-11-17 21:43:17 -05:00
MonviechandGitHub 0152180865 www/caddy: Prevent sudo on startup via skip_install_trust (#5015)
This can happen when an internal domain has been added, e.g. example.internal. Caddy will then generate a self signed certificate via smallstep CA, and on startup it tries to install a root certificate for it into the FreeBSD trust store.

If running as www user, this causes sudo to appear at boot, because that is baked into smallstep CA.

https://github.com/smallstep/truststore/blob/master/truststore_freebsd.go

Via skip_install_trust, we prevent caddy from trying this.
2025-11-10 17:01:03 +01:00
MonviechandGitHub e19e3c94f6 www/caddy: fix setup.sh script not setting correct ownership in www user mode (#4976)
* www/caddy: Streamline setup.sh, since chown is skipped automatically when ownership matches

* add changelog
2025-10-11 14:02:48 +02:00
MonviechandGitHub a9c5f61850 www/caddy: Bump version to 2.0.4_1 (#4975) 2025-10-10 16:11:20 +02:00
MonviechandGitHub bcd2deb43e www/caddy: Fix HTTP access log excluding the process logs accidentally (#4974)
When using "include" in the default global logger, all other logs get excluded, except those that get included.

Using a "log default" instead, sends the HTTP access logs to the default logger.

This allows process and HTTP access logs to coexist in the same logger.
2025-10-10 16:05:31 +02:00
MonviechandGitHub 97603fc29b www/caddy: Bump plugin version to 2.0.4 (#4954) 2025-09-24 17:59:44 +02:00
b2401a695c www/caddy: Add DNS-01 challenge delegation via CNAME (#4950)
* caddy: Add DNS-01 override domain feature

Adds support for DNS-01 CNAME delegation through the dns_challenge_override_domain directive. This enables least-privilege DNS setups where the certificate domain delegates ACME challenges to a target domain managed by the configured DNS provider.

* Review feedback: Remove default defs and align validation string with existing one

---------

Co-authored-by: Christophe Neuerburg <c.neuerburg@sdsys.ch>
2025-09-24 08:45:05 +02:00
Franco Fichtner 3f298fc57f www/caddy: fix for #4930
Best practice vs. reality, flagged in code audit but reality had other plans.
2025-09-09 19:33:00 +02:00
MonviechandGitHub 2c4e372109 www/caddy: Fix subdomain http access log (#4919)
* www/caddy: Emit subdomain http access logs in the same log collector as their wildcard parent

* add changelog
2025-09-02 09:52:37 +02:00
MonviechandGitHub a691165cee www/caddy: Fix setup.sh script interaction with files and directories in caddy storage (#4911)
* www/caddy: Fix setup.sh script interaction with files and directories in caddy storage

This fixes multiple things:
- When running as www:www user, the interaction with the admin socket could fail, now we do not touch /var/run/caddy and let it be handled by the permissions set in the rc.d script
- When restarting/reloading caddy, permissions and ownerships would be changed every time, possibly breaking the storage if caddy writes at the same time
- The custom certificates are now stored outside the scope of the caddy storage, ensuring caddy has atomic write guarantee on /var/db/caddy/data...

* Fix some review comments

* add changelog
2025-09-02 09:26:22 +02:00
MonviechandGitHub e0897e1430 www/caddy: Implement tabulator groupBy, fix tabulator 'Data Load Response Blocked' warning, remove unnecessary HTML (#4909)
* www/caddy: Implement tabulator groupBy into subdomain and handlers tabs, modernize style and html

* www/caddy: Fix search endpoints being fired multiple times on initial page load, and when using the command buttons. This fixes some tabulator warnings and improves performance.

* www/caddy: Bump version to 2.0.3 and add changelog
2025-08-23 15:34:23 +02:00
Franco Fichtner 6c13dfb82e www/caddy: try new lint inclusion and address complaints 2025-07-29 10:28:27 +02:00
MonviechandGitHub 9b31fedd44 www/caddy: Remove obsolete model_relation_domain formatter (#4813)
* www/caddy: Remove obsolete model_relation_domain formatter

* www/caddy: Bump revision and changelog
2025-07-15 09:58:13 +02:00
MonviechandGitHub 74ec76caae www/caddy: Change em into px, fix key/value display in formatter (#4807)
* www/caddy: Change em into px, fix key/value display in formatter

* www/caddy: Change $ to % for https://github.com/opnsense/core/commit/597eecc5dc5e2268a6745bdf178fff91b8708426

* www/caddy: Bump revision

* www/caddy: Add changelog
2025-07-15 09:39:53 +02:00
Franco Fichtner f240ec0fce plugins: run style-model 2025-07-02 10:46:07 +02:00
MonviechandGitHub c590eef1e2 www/caddy: Add global servers timeouts options (#4778)
* www/caddy: Add global servers timeouts options

* www/caddy: Bump version and changelog

* www/caddy: Add changelog
2025-06-30 10:06:10 +02:00
MonviechandGitHub 1a28c9ba9e www/caddy: Use SimpleActionButton in general.volt, remove onAction in template since we use data-service-widget (#4779) 2025-06-30 10:05:31 +02:00
MonviechandGitHub 00556eaf28 www/caddy: Fix snake_case usage in controller (#4776) 2025-06-29 13:01:29 +02:00
MonviechandGitHub 4b4ec29eca mvc: Replace camelCase API notation with snake_case (#4767)
* mvc: Replace camelCase API notation with snake_case

* mvc: Replace camelCase API notation with snake_case, fixed some special cases in www/caddy
2025-06-23 14:45:51 +02:00
MonviechandGitHub bb1721640d www/caddy: Fix add handler command causing all domain and subdomain selections being cleared sometimes (#4748) 2025-06-11 09:09:45 +02:00
MonviechandGitHub 90fedaaee3 www/caddy: Fix active health check in template from https://github.com/opnsense/plugins/pull/4721 (#4725) 2025-05-25 16:06:16 +02:00
Zach BensleyandGitHub bc2bb3d982 www/caddy: Add active health checks (#4721)
* www/caddy: Add active health checks

* www/caddy: Update Caddy model validation rules for health checks

Adjusted regex masks for `health_uri`, `health_upstream`, and `health_status` fields to improve validation accuracy. Changed `health_upstream` to `IPPortField` for better type handling.

* www/caddy: Moved Active checks after Passive checks in UI.
Use defaults for health_upstream IPPortField

* www/caddy: fix default for `health_follow_redirects`
2025-05-23 15:42:38 +02:00
MonviechandGitHub a5fdb9ccd1 www/caddy: Add changelogs and bump plugin to version 2.0.0 (#4703)
* www/caddy: Update pkg-descr

* www/caddy: Bump version

* www/caddy: Sync pkg-descr with available description in github.com/caddyserver
2025-05-14 13:07:48 +02:00