fix backend dockerfile, Caddyfile, and email controller
This commit is contained in:
parent
a9ccc12671
commit
7f8e72e857
3 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
||||||
USER $APP_UID
|
USER $APP_UID
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["Foxnouns.Backend/Foxnouns.Backend.csproj", "Foxnouns.Backend/"]
|
COPY ["Foxnouns.Backend/Foxnouns.Backend.csproj", "Foxnouns.Backend/"]
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class EmailAuthController(
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("callback")]
|
[HttpPost("callback")]
|
||||||
public async Task<IActionResult> CallbackAsync([FromBody] CallbackRequest req)
|
public async Task<IActionResult> CallbackAsync([FromBody] EmailCallbackRequest req)
|
||||||
{
|
{
|
||||||
CheckRequirements();
|
CheckRequirements();
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Frontend and API
|
# Frontend and API
|
||||||
http://localhost:80 {
|
http://:80 {
|
||||||
reverse_proxy /api/* http://rate:5003
|
reverse_proxy /api/* http://rate:5003
|
||||||
reverse_proxy http://frontend:3000
|
reverse_proxy http://frontend:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
# prns.cc (profile URL shortener)
|
# prns.cc (profile URL shortener)
|
||||||
http://localhost:81 {
|
http://:81 {
|
||||||
rewrite * /sid{uri}
|
rewrite * /sid{uri}
|
||||||
reverse_proxy http://backend:5000
|
reverse_proxy http://backend:5000
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue