diff --git a/Dockerfile b/Dockerfile index c954a04..c5ff2a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["dotnet", "api.dll"] \ No newline at end of file diff --git a/api/appsettings.json b/api/appsettings.json index 1b2d3ba..16ff39e 100644 --- a/api/appsettings.json +++ b/api/appsettings.json @@ -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": "*" } \ No newline at end of file