b
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nutchayut
2024-06-02 00:06:06 +07:00
parent fc38961b62
commit 318d7884f2
334 changed files with 9341 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
FROM registry.71dev.com/dotnetsdk:8.0 as build-env
WORKDIR /source
COPY . .
RUN dotnet publish OCPP.Core.Server/OCPP.Core.Server.csproj -o /publish
RUN dotnet publish OCPP.Core.Management/OCPP.Core.Management.csproj -o /publish
#RUN dotnet build
#RUN dotnet publish -o /publish --configuration Release ;
# Publish Stage
@@ -9,4 +9,4 @@ FROM registry.71dev.com/dotnetaspnet:8.0
WORKDIR /app
COPY --from=build-env /publish .
ENV ASPNETCORE_URLS http://*:8081
ENTRYPOINT ["dotnet", "OCPP.Core.Server.dll"]
ENTRYPOINT ["dotnet", "OCPP.Core.Management.dll"]

View File

@@ -0,0 +1,2 @@
warn: Microsoft.AspNetCore.Server.Kestrel[0] @ 2024-06-01T18:31:32.2089150+07:00
Overriding address(es) 'http://localhost:8082'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.

View File

@@ -12,6 +12,7 @@
<ItemGroup>
<Compile Remove="Logs\**" />
<Content Remove="Logs\**" />
<Content Include="obj\rider.project.model.nuget.info" />
<EmbeddedResource Remove="Logs\**" />
<None Remove="Logs\**" />
</ItemGroup>

View File

@@ -31,10 +31,12 @@
"ConnectionStrings": {
//"SQLite": "Filename=.\\..\\SQLite\\OCPP.Core.sqlite;"
"SqlServer": "Server=.;Database=OCPP.Core;Trusted_Connection=True;Encrypt=false;TrustServerCertificate=false"
//"SqlServer": "Server=.;Database=OCPP.Core;Trusted_Connection=True;Encrypt=false;TrustServerCertificate=false",
"SqlServer": "Data Source=202.129.205.201,31455;Initial Catalog=OCPP.Core;User ID=dev;Password=password@1;TrustServerCertificate=true;"
},
"ServerApiUrl": "http://localhost:8081/API",
//"ServerApiUrl": "http://localhost:8081/API",
"ServerApiUrl": "http://server-ocpp-service.ocpp/API",
"ApiKey": "36029A5F-B736-4DA9-AE46-D66847C9062C",
"Users": [

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,20 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "8.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Reflection.NullabilityInfoContext.IsSupported": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1 @@
{"ContentRoots":["/Users/nutchayut/OCPP.Core/OCPP.Core.Management/wwwroot/"],"Root":{"Children":{"css":{"Children":{"site.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/site.css"},"Patterns":null}},"Asset":null,"Patterns":null},"favicon.ico":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"favicon.ico"},"Patterns":null},"js":{"Children":{"site.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"js/site.js"},"Patterns":null}},"Asset":null,"Patterns":null},"lib":{"Children":{"bootstrap-dialog":{"Children":{"bootstrap-dialog.min.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/bootstrap-dialog/bootstrap-dialog.min.css"},"Patterns":null},"bootstrap-dialog.min.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/bootstrap-dialog/bootstrap-dialog.min.js"},"Patterns":null}},"Asset":null,"Patterns":null},"jquery-validation-unobtrusive":{"Children":{"jquery.validate.unobtrusive.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"},"Patterns":null},"jquery.validate.unobtrusive.min.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"},"Patterns":null},"LICENSE.txt":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation-unobtrusive/LICENSE.txt"},"Patterns":null}},"Asset":null,"Patterns":null},"jquery-validation":{"Children":{"dist":{"Children":{"additional-methods.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation/dist/additional-methods.js"},"Patterns":null},"additional-methods.min.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation/dist/additional-methods.min.js"},"Patterns":null},"jquery.validate.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation/dist/jquery.validate.js"},"Patterns":null},"jquery.validate.min.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation/dist/jquery.validate.min.js"},"Patterns":null}},"Asset":null,"Patterns":null},"LICENSE.md":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery-validation/LICENSE.md"},"Patterns":null}},"Asset":null,"Patterns":null},"jquery":{"Children":{"dist":{"Children":{"jquery.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery/dist/jquery.js"},"Patterns":null},"jquery.min.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery/dist/jquery.min.js"},"Patterns":null},"jquery.min.map":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery/dist/jquery.min.map"},"Patterns":null}},"Asset":null,"Patterns":null},"LICENSE.txt":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"lib/jquery/LICENSE.txt"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"Logging": {
"File": {
"BasePath": "Logs",
"FileAccessMode": "KeepOpenAndAutoFlush",
"FileEncodingName": "utf-8",
"DateFormat": "yyyyMMdd",
"CounterFormat": "000",
"MaxFileSize": 1048576,
"LogLevel": {
"OCPP": "Trace",
"Microsoft": "Warning",
"Default": "Debug"
},
"IncludeScopes": false,
"MaxQueueSize": 10,
"Files": [
{
"Path": "OCPP.Core.Management-<counter>.log",
"CounterFormat": "00"
}
]
}
},
"LogLevel": {
"Default": "Information"
},
"AllowedHosts": "*",
"ConnectionStrings": {
//"SQLite": "Filename=.\\..\\SQLite\\OCPP.Core.sqlite;"
"SqlServer": "Server=.;Database=OCPP.Core;Trusted_Connection=True;Encrypt=false;TrustServerCertificate=false"
},
"ServerApiUrl": "http://localhost:8081/API",
"ApiKey": "36029A5F-B736-4DA9-AE46-D66847C9062C",
"Users": [
{
"Username": "admin",
"Password": "t3st",
"Administrator": true
},
{
"Username": "user",
"Password": "t3st",
"Administrator": false
}
],
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:8082"
},
"HttpsInlineCertFile": {
"Url": "https://localhost:8092",
"Certificate": {
"Path": "localhost.pfx",
"Password": "OCPP.Core"
}
}
}
}
}

Binary file not shown.

View File

@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("dallmann consulting GmbH")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.2.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.3.2+88ddddd7c28044fdad5515c33a8fbef41a5387c4")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.3.2+fc38961b62d48b98657acc81848beb625ce56692")]
[assembly: System.Reflection.AssemblyProductAttribute("OCPP.Core")]
[assembly: System.Reflection.AssemblyTitleAttribute("OCPP.Core.Management")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.3.2.0")]

View File

@@ -1 +1 @@
8a23988c6a892ff0d7ca584ecafd18988537390493f966a7777d98e91f2575e3
ec8730582114481ba95afca3f7c6d409282650a7d1eb4ed7cf74d0cf01c5f0b7

Some files were not shown because too many files have changed in this diff Show More