feat: add tag extraction functionality to Caddy configuration and display in UI
All checks were successful
Caddy Manager CI build / docker (push) Successful in 49s

This commit is contained in:
2025-07-28 22:34:52 +07:00
parent 5d5888c6e7
commit 7012193e04
10 changed files with 426 additions and 9 deletions

View File

@@ -35,4 +35,11 @@ public interface ICaddyConfigurationParsingService
/// <param name="caddyfileContent"></param>
/// <returns></returns>
List<int> GetReverseProxyPortsFromCaddyfileContent(string caddyfileContent);
/// <summary>
/// Extracts tags from a Caddyfile content using the format: # Tags: [tag1;tag2;tag3]
/// </summary>
/// <param name="caddyfileContent"></param>
/// <returns></returns>
List<string> GetTagsFromCaddyfileContent(string caddyfileContent);
}

View File

@@ -30,6 +30,11 @@ public class CaddyConfigurationInfo
/// </summary>
public List<int> AggregatedReverseProxyPorts { get; set; } = [];
/// <summary>
/// Tags extracted from the configuration content using the format: # Tags: [tag1;tag2;tag3]
/// </summary>
public List<string> Tags { get; set; } = [];
public override bool Equals(object? obj)
{
if (obj is not CaddyConfigurationInfo other)