fix: update config
This commit is contained in:
+6
-6
@@ -2,18 +2,18 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY mws.backend.dotnet.sln ./
|
COPY mws.backend.dotnet.sln ./
|
||||||
COPY mws.domain/*.csproj mws.domain/
|
COPY domain/*.csproj domain/
|
||||||
COPY mws.application/*.csproj mws.application/
|
COPY application/*.csproj application/
|
||||||
COPY mws.infrastructure/*.csproj mws.infrastructure/
|
COPY infrastructure/*.csproj infrastructure/
|
||||||
COPY mws.api/*.csproj mws.api/
|
COPY api/*.csproj api/
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet publish mws.api -c Release -o /app/publish
|
RUN dotnet publish api -c Release -o /app/publish
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/publish .
|
COPY --from=build /app/publish .
|
||||||
ENV ASPNETCORE_URLS=http://+:8080
|
ENV ASPNETCORE_URLS=http://+:8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["dotnet", "mws.api.dll"]
|
ENTRYPOINT ["dotnet", "api.dll"]
|
||||||
+16
-2
@@ -1,8 +1,22 @@
|
|||||||
{
|
{
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"Default": "Host=192.168.2.100;Port=5432;Database=mws;Username=postgres;Password=Pa55w0rd"
|
||||||
|
},
|
||||||
|
"Jwt": {
|
||||||
|
"Secret": "mws-development-secret-key-change-me-in-production-123456",
|
||||||
|
"Issuer": "Mws",
|
||||||
|
"Audience": "Mws.Clients",
|
||||||
|
"Expiration": "12:00:00"
|
||||||
|
},
|
||||||
|
"Cors": {
|
||||||
|
"Origins": "*"
|
||||||
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning",
|
||||||
|
"Microsoft.EntityFrameworkCore": "Warning"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user