feat(tool): use public domains as presets (works LAN + internet)
Build & Deploy / build (push) Successful in 26s
Build & Deploy / build (push) Successful in 26s
Switcher presets now use the public domains (tc.nfteam.ovh:8443 / rd-tc.nfteam.ovh:8444) so the same target works for everyone; the unified TLS cert covers both hostnames. LAN users add a hosts entry to avoid hairpin NAT. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -13,14 +13,13 @@ internal static class Program
|
|||||||
{
|
{
|
||||||
private const string AppId = "868270";
|
private const string AppId = "868270";
|
||||||
|
|
||||||
// Presets. LAN entries match a direct homelab connection (192.168.1.136); the internet
|
// Presets use the public domains so the same target works for everyone (LAN or internet):
|
||||||
// entry (public domain) is for friends connecting from outside — the TLS cert covers the
|
// DNS resolves to the public IP for friends, and the unified TLS cert covers both hostnames.
|
||||||
// hostname and :8443 bypasses the reverse proxy.
|
// On the same LAN, add a hosts entry (domain -> 192.168.1.136) to avoid hairpin NAT.
|
||||||
private static readonly (string Key, string Label, string Url)[] Presets =
|
private static readonly (string Key, string Label, string Url)[] Presets =
|
||||||
{
|
{
|
||||||
("prod-lan", "PROD (LAN)", "https://192.168.1.136:8443"),
|
("prod", "PROD", "https://tc.nfteam.ovh:8443"),
|
||||||
("preprod-lan", "PREPROD (LAN)", "https://192.168.1.136:8444"),
|
("preprod", "PREPROD", "https://rd-tc.nfteam.ovh:8444"),
|
||||||
("prod", "PROD (amis / internet)", "https://tc.nfteam.ovh:8443"),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private static string SettingsPath => Path.Combine(
|
private static string SettingsPath => Path.Combine(
|
||||||
|
|||||||
Reference in New Issue
Block a user