Skip to content

Commit

Permalink
add missing base urls to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Oct 18, 2023
1 parent 4825d05 commit 48cb9b2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
18 changes: 13 additions & 5 deletions OryAdmin/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
<tbody>
<tr>
<td>Admin URL</td>
<td>@_OryAdminUrl</td>
<td>@EnvService.KratosAdminUrl</td>
</tr>
<tr>
<td>Public URL</td>
<td>@EnvService.KratosPublicUrl</td>
</tr>
<tr>
<td>Alive</td>
Expand Down Expand Up @@ -52,7 +56,11 @@
<tbody>
<tr>
<td>Admin URL</td>
<td>@_hydraAdminUrl</td>
<td>@EnvService.HydraAdminUrl</td>
</tr>
<tr>
<td>Public URL</td>
<td>@EnvService.HydraAdminUrl</td>
</tr>
<tr>
<td>Alive</td>
Expand Down Expand Up @@ -86,7 +94,7 @@
<tbody>
<tr>
<td>API URL</td>
<td>@_oathKeeperApiUrl</td>
<td>@EnvService.OathKeeperApiUrl</td>
</tr>
<tr>
<td>Alive</td>
Expand Down Expand Up @@ -121,11 +129,11 @@
<tbody>
<tr>
<td>Read URL</td>
<td>@_ketoReadUrl</td>
<td>@EnvService.KetoReadUrl</td>
</tr>
<tr>
<td>Write URL</td>
<td>@_ketoWriteUrl</td>
<td>@EnvService.KetoWriteUrl</td>
</tr>
<tr>
<td>Alive</td>
Expand Down
12 changes: 0 additions & 12 deletions OryAdmin/Components/Pages/Home.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,25 @@ public partial class Home
private bool _enabledKratos;
private bool _enabledOathKeeper;

private string _hydraAdminUrl = "?";
private bool? _hydraAlive;
private bool? _hydraReady;
private string? _hydraVersion;

private bool? _ketoAlive;
private string _ketoReadUrl = "?";
private bool? _ketoReady;
private string? _ketoVersion;
private string _ketoWriteUrl = "?";
private bool? _kratosAlive;
private bool? _kratosReady;
private string? _kratosVersion;

private bool? _oathKeeperAlive;
private string _oathKeeperApiUrl = "?";
private bool? _oathKeeperReady;
private string? _oathKeeperVersion;

private string _OryAdminUrl = "?";

[Inject] private ApiService ApiService { get; set; } = default!;

protected override async Task OnInitializedAsync()
{
_OryAdminUrl = EnvService.KratosAdminUrl;
_hydraAdminUrl = EnvService.HydraAdminUrl;
_oathKeeperApiUrl = EnvService.OathKeeperApiUrl;
_ketoWriteUrl = EnvService.KetoWriteUrl;
_ketoReadUrl = EnvService.KetoReadUrl;

_enabledKratos = EnvService.ServiceEnabled(OryService.Kratos);
_enabledHydra = EnvService.ServiceEnabled(OryService.Hydra);
_enabledOathKeeper = EnvService.ServiceEnabled(OryService.OathKeeper);
Expand Down
4 changes: 2 additions & 2 deletions ory/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ services:
oathkeeper:
image: oryd/oathkeeper:v0.40
ports:
- "127.0.0.1:4455:4455"
- "127.0.0.1:4456:4456"
- "127.0.0.1:4455:4455" # proxy
- "127.0.0.1:4456:4456" # api
command: serve --config=/etc/config/oathkeeper/config.yml
environment:
- TRACING_PROVIDER=jaeger
Expand Down

0 comments on commit 48cb9b2

Please sign in to comment.