From 5d3b2e2e8a9212865e448a94297633c5441253ed Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Tue, 15 Nov 2022 08:43:21 +0000 Subject: [PATCH 1/3] Enable CodeSpaces PortForwarding Config as SMTP4Dev did not auto appear in new prebuilds --- .devcontainer/devcontainer.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2040a05912..b56869cea1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -37,6 +37,18 @@ // This is used in the prebuilds - so dotnet build (nuget restore and node stuff) is done "updateContentCommand": "dotnet build umbraco.sln", + "portsAttributes": { + "9000": { + "label": "Umbraco HTTP", + "protocol": "http", + "onAutoForward": "notify" + }, + "44331": { + "label": "Umbraco HTTPS", + "protocol": "https", + "onAutoForward": "notify" + } + } // [Optional] To reuse of your local HTTPS dev cert: // From 0cad30a8fa342c8b42bf7ab3525489eacc379bca Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Tue, 15 Nov 2022 08:55:39 +0000 Subject: [PATCH 2/3] Adds SMTP4Dev and opens browser to HTTPs Umbraco --- .devcontainer/devcontainer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b56869cea1..b4d5c395cd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -38,6 +38,11 @@ // This is used in the prebuilds - so dotnet build (nuget restore and node stuff) is done "updateContentCommand": "dotnet build umbraco.sln", "portsAttributes": { + "5000": { + "label": "SMTP4Dev", + "protocol": "http", + "onAutoForward": "notify" + }, "9000": { "label": "Umbraco HTTP", "protocol": "http", @@ -46,7 +51,7 @@ "44331": { "label": "Umbraco HTTPS", "protocol": "https", - "onAutoForward": "notify" + "onAutoForward": "openBrowser" } } From b32b0371ae82aae57aeb79cd44d9c5b5c25ff8ab Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Tue, 15 Nov 2022 09:47:10 +0000 Subject: [PATCH 3/3] Open Browser config is not working for some unknown reason --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b4d5c395cd..b51248d798 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -51,7 +51,7 @@ "44331": { "label": "Umbraco HTTPS", "protocol": "https", - "onAutoForward": "openBrowser" + "onAutoForward": "notify" } }