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
|
||||
|
||||
COPY mws.backend.dotnet.sln ./
|
||||
COPY mws.domain/*.csproj mws.domain/
|
||||
COPY mws.application/*.csproj mws.application/
|
||||
COPY mws.infrastructure/*.csproj mws.infrastructure/
|
||||
COPY mws.api/*.csproj mws.api/
|
||||
COPY domain/*.csproj domain/
|
||||
COPY application/*.csproj application/
|
||||
COPY infrastructure/*.csproj infrastructure/
|
||||
COPY api/*.csproj api/
|
||||
RUN dotnet restore
|
||||
|
||||
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
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
ENV ASPNETCORE_URLS=http://+: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": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.EntityFrameworkCore": "Warning"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in New Issue
Block a user