voteapi fixes
This commit is contained in:
parent
d96039d20c
commit
051daebada
3 changed files with 4 additions and 3 deletions
src/EllieBot.VotesApi
|
@ -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
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["src/EllieBot.VotesApi/EllieBot.VotesApi.csproj", "EllieBot.VotesApi/"]
|
COPY ["src/EllieBot.VotesApi/EllieBot.VotesApi.csproj", "EllieBot.VotesApi/"]
|
||||||
RUN dotnet restore "src/EllieBot.VotesApi/EllieBot.VotesApi.csproj"
|
RUN dotnet restore "src/EllieBot.VotesApi/EllieBot.VotesApi.csproj"
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace EllieBot.VotesApi
|
||||||
|
|
||||||
services.AddGrpcClient<VoteService.VoteServiceClient>(options =>
|
services.AddGrpcClient<VoteService.VoteServiceClient>(options =>
|
||||||
{
|
{
|
||||||
options.Address = new Uri("http://127.0.0.1:59384");
|
options.Address = new Uri(Configuration["BotGrpcHost"]!);
|
||||||
})
|
})
|
||||||
.ConfigureChannel((sp, c) =>
|
.ConfigureChannel((sp, c) =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,5 +9,6 @@
|
||||||
"DiscordsKey": "my_discords_key",
|
"DiscordsKey": "my_discords_key",
|
||||||
"TopGGKey": "my_topgg_key",
|
"TopGGKey": "my_topgg_key",
|
||||||
"DiscordBotListKey": "my_discordbotlist_key",
|
"DiscordBotListKey": "my_discordbotlist_key",
|
||||||
|
"BotGrpcHost": "http://127.0.0.1:59384",
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue