mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/caddy: Caddy dyndns wildcard domain fix (#3989)
- wildcard domains like "*.example.com" need the following dns update: example.com * - base domains like "example.com" need the following dns update: example.com @
This commit is contained in:
@@ -26,6 +26,10 @@ DOC: https://docs.opnsense.org/manual/how-tos/caddy.html
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.5.6
|
||||
|
||||
* Fix: Wildcard domains with activated "Dynamic DNS" update their base domain with * instead of @.
|
||||
|
||||
1.5.5
|
||||
|
||||
* Fix: "Apply" could hang when websockets are in use by clients. A grace period of 10s has been added in General Settings that forces to close all connections on config changes.
|
||||
|
||||
@@ -123,7 +123,11 @@
|
||||
{% for reverse in helpers.toList('Pischem.caddy.reverseproxy.reverse') %}
|
||||
{% if reverse.enabled|default("0") == "1" and reverse.DynDns|default("0") == "1" %}
|
||||
{% set cleanedDomain = reverse.FromDomain | replace("*.","") %}
|
||||
{% do dynDnsDomains.append(cleanedDomain + " @") %}
|
||||
{% if reverse.FromDomain.startswith("*.") %}
|
||||
{% do dynDnsDomains.append(cleanedDomain + " *") %}
|
||||
{% else %}
|
||||
{% do dynDnsDomains.append(cleanedDomain + " @") %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% for subdomain in helpers.toList('Pischem.caddy.reverseproxy.subdomain') %}
|
||||
|
||||
Reference in New Issue
Block a user