voteapi fixes

This commit is contained in:
Toastie 2025-03-29 20:49:00 +13:00
parent d96039d20c
commit 051daebada
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
3 changed files with 4 additions and 3 deletions

View file

@ -1,9 +1,9 @@
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/EllieBot.VotesApi/EllieBot.VotesApi.csproj", "EllieBot.VotesApi/"]
RUN dotnet restore "src/EllieBot.VotesApi/EllieBot.VotesApi.csproj"

View file

@ -25,7 +25,7 @@ namespace EllieBot.VotesApi
services.AddGrpcClient<VoteService.VoteServiceClient>(options =>
{
options.Address = new Uri("http://127.0.0.1:59384");
options.Address = new Uri(Configuration["BotGrpcHost"]!);
})
.ConfigureChannel((sp, c) =>
{

View file

@ -9,5 +9,6 @@
"DiscordsKey": "my_discords_key",
"TopGGKey": "my_topgg_key",
"DiscordBotListKey": "my_discordbotlist_key",
"BotGrpcHost": "http://127.0.0.1:59384",
"AllowedHosts": "*"
}