Skip to content

Commit 75cbd6d

Browse files
committed
View join url, enable sslonly in azure
1 parent 76e06b3 commit 75cbd6d

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ resource webApp 'Microsoft.Web/sites@2024-04-01' = {
7676
}
7777
properties: {
7878
serverFarmId: hostingPlan.id
79+
httpsOnly: true
7980
siteConfig: {
8081
linuxFxVersion: 'DOCKER|${dockerHubUsername}/devops-quickscan:latest'
8182
}

src/DevOpsQuickScan.BlazorApp/Components/Partials/QrCodeComponent.razor

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="card h-100">
44
<h5 class="card-header d-flex align-items-center">
5-
<span>Join session</span>
5+
<span>Scan to join session</span>
66
</h5>
77

88
<div class="card-body d-flex justify-content-center align-items-center">
@@ -12,19 +12,22 @@
1212
alt="Join QR code" />
1313
</div>
1414

15-
<div class="card-footer text-end">
15+
<div class="card-footer text-center">
16+
<h5>Or join at: @_viewUrl</h5>
1617
</div>
1718
</div>
1819

1920
@code {
2021
private string? _joinUrl;
22+
private string? _viewUrl;
2123

2224
[Parameter] public required string Url { get; set; }
2325

2426
protected override void OnParametersSet()
2527
{
2628
var uri = new Uri(Url);
2729
_joinUrl = $"{uri.Scheme}://{uri.Host}";
30+
_viewUrl = uri.Host;
2831
}
2932

3033
}

src/DevOpsQuickScan.BlazorApp/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dotnetRunMessages": true,
1717
"launchBrowser": false,
1818
"launchUrl": "facilitator",
19-
"applicationUrl": "https://localhost:7176",
19+
"applicationUrl": "https://localhost:7176;http://localhost:5119",
2020
"environmentVariables": {
2121
"ASPNETCORE_ENVIRONMENT": "Development"
2222
}

0 commit comments

Comments
 (0)