All is in .env

This commit is contained in:
Maxime Boulay
2026-05-01 14:25:03 +02:00
parent e92967f85f
commit 5fc97febfb
6 changed files with 41 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

View File

@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"PostgreSQL": "User ID=maxime;Password=S?$9<Sp5JTX4-aC4=8J*;Host=localhost;Port=15432;Database=GiecChallenge;"
"PostgreSQL": "${ConnectionStrings__PostgreSQL}"
},
"Logging": {
"LogLevel": {
@@ -9,11 +9,11 @@
}
},
"AllowedHosts": "*",
"OriginAllowed": "http://localhost:3000",
"PasswordHash" : "U^CbUUV,$MMU]2lD$MFZ5;Bui#)XTS",
"OriginAllowed": "${OriginAllowed}",
"PasswordHash": "${PasswordHash}",
"JWT": {
"ValidAudience": "http://localhost:7021",
"ValidIssuer": "http://localhost:7021",
"Secret": "eAD+PhDIZ2(d2/<|,yvA/8'Z;[Wl|Z"
"ValidAudience": "${JWT__ValidAudience}",
"ValidIssuer": "${JWT__ValidIssuer}",
"Secret": "${JWT__Secret}"
}
}
}

View File

@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"PostgreSQL": ""
"PostgreSQL": "${ConnectionStrings__PostgreSQL}"
},
"Logging": {
"LogLevel": {
@@ -8,12 +8,12 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "",
"OriginAllowed": "",
"PasswordHash" : "",
"AllowedHosts": "*",
"OriginAllowed": "${OriginAllowed}",
"PasswordHash": "${PasswordHash}",
"JWT": {
"ValidAudience": "",
"ValidIssuer": "",
"Secret": ""
"ValidAudience": "${JWT__ValidAudience}",
"ValidIssuer": "${JWT__ValidIssuer}",
"Secret": "${JWT__Secret}"
}
}
}