You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an *A* record to your DNS zone with the new external IP address of the traefik service using [az network dns record-set a add-record][az-network-dns-record-set-a-add-record] and remove the previous *A* record using [az network dns record-set a remove-record][az-network-dns-record-set-a-remove-record].
242
+
243
+
```azurecli
244
+
az network dns record-set a add-record \
245
+
--resource-group myResourceGroup \
246
+
--zone-name MY_CUSTOM_DOMAIN \
247
+
--record-set-name *.traefik \
248
+
--ipv4-address MY_NEW_EXTERNAL_IP
249
+
250
+
az network dns record-set a remove-record \
251
+
--resource-group myResourceGroup \
252
+
--zone-name MY_CUSTOM_DOMAIN \
253
+
--record-set-name *.traefik \
254
+
--ipv4-address PREVIOUS_EXTERNAL_IP
255
+
```
256
+
257
+
The above example updates the *A* record in the *MY_CUSTOM_DOMAIN* DNS zone to use *PREVIOUS_EXTERNAL_IP*.
258
+
221
259
Update [values.yaml][values-yaml] to include the details for using *cert-manager* and HTTPS. Below is an example of an updated `values.yaml` file:
222
260
223
261
```yaml
@@ -252,10 +290,15 @@ gateway:
252
290
Upgrade the sample application using `helm`:
253
291
254
292
```console
255
-
helm upgrade bikesharing . --namespace dev --atomic
293
+
helm upgrade bikesharingsampleapp . --namespace dev --atomic
256
294
```
257
295
258
-
Navigate to the sample application in the *dev/azureuser1* child space and notice you are redirected to use HTTPS. Also notice that the page loads, but the browser shows some errors. Opening the browser console shows the error relates to an HTTPS page trying to load HTTP resources. For example:
296
+
Navigate to the sample application in the *dev/azureuser1* child space and notice you are redirected to use HTTPS.
297
+
298
+
> [!IMPORTANT]
299
+
> It may take 30 minutes or more for the DNS changes to complete and your sample application to be accessible.
300
+
301
+
Also notice that the page loads, but the browser shows some errors. Opening the browser console shows the error relates to an HTTPS page trying to load HTTP resources. For example:
259
302
260
303
```console
261
304
Mixed Content: The page at 'https://azureuser1.s.dev.bikesharingweb.traefik.MY_CUSTOM_DOMAIN/devsignin' was loaded over HTTPS, but requested an insecure resource 'http://azureuser1.s.dev.gateway.traefik.MY_CUSTOM_DOMAIN/api/user/allUsers'. This request has been blocked; the content must be served over HTTPS.
@@ -286,7 +329,7 @@ Update [BikeSharingWeb/package.json][package-json] with a dependency for the *ur
286
329
...
287
330
```
288
331
289
-
Update the *getApiHostAsync* method in [BikeSharingWeb/pages/helpers.js][helpers-js] to use HTTPS:
332
+
Update the *getApiHostAsync* method in [BikeSharingWeb/lib/helpers.js][helpers-js] to use HTTPS:
290
333
291
334
```javascript
292
335
...
@@ -323,6 +366,7 @@ Learn how Azure Dev Spaces helps you develop more complex applications across mu
0 commit comments