75 fichiers, ~1 mois de travail depuis f222861 (17/07). Contenu :
Onboarding self-service — jamais exécuté de bout en bout
OnboardingController, StripeWebhookController, StripeService, ResendEmailService
+ IEmailService (10 templates), EmailTemplates/, TrialLifecycleService (Hangfire),
PasswordTokenHelper, SlugHelper, 5 DTOs. Essai 14 j, Stripe customer/Checkout/Tax,
mot de passe oublié + invitation user, plafond IA d'essai.
Schéma Postgres v3 — passe pendant que la base est vide
ContentEmbedding + index HNSW (vector_cosine_ops), IEmbeddingService +
GoogleEmbeddingService (gemini-embedding-001, 768 dims), Deployment/Dockerfile.postgres
(postgis 3.4.3 + pgvector 0.8.6, épinglé par digest — un tag mobile rejouerait le
warning de collation glibc). Colonnes Resource : StoragePath, FileName,
IncludeInAiKnowledge, AiIndexStatus + nouveaux ResourceType ajoutés EN FIN d'enum.
Guide IA
Champs Guide* sur Instance + InstanceDTO, AssistantService lit la configuration client
dans les 4 blocs de prompt (ton codé en dur retiré, règle hors-sujet ajoutée aux deux
variantes qui n'en avaient pas), IHttpClientFactory à la place des new HttpClient().
Table VisitorQuestion + ConversationId sur AiChatRequest.
Stats
Rétention unifiée à 13 mois (instances ET plans), VisitEventPurgeService.
Nettoyage
IsStepLocked / IsHiddenInitially / FactContent supprimés de GuidedStep — IsStepLocked
rendait une étape définitivement infranchissable même après réussite.
SectionMap allégé (-57 lignes).
Tests
SectionParcoursControllerTests, FakeConfiguration, FakeEmailService.
ContentEmbedding a cassé 116 tests sur 124 (EF InMemory ne connaît pas Vector) :
l'entité est exclue quand le provider n'est pas Npgsql. Conséquence assumée —
le vector store n'est couvert par aucun test. dotnet test 124/124.
10 migrations EF. Base locale à jour, dotnet build 0 erreur.
Rien n'est en prod : la bascule Mongo → Postgres est décrite dans DOCS/STATUS.md §1quinquies.
⚠️ appsettings.json contient les clés Stripe (test) et Resend (prod) en clair — à rotationner.
62 lines
2.2 KiB
JSON
62 lines
2.2 KiB
JSON
{
|
|
/*"ConnectionStrings": {
|
|
//"TabletDb": "mongodb://admin:MioTech4ever!@localhost:27017" //DEV
|
|
//"TabletDb": "mongodb://admin:MioTech4ever!@localhost:27017", //PROD - Thomas
|
|
//"TabletDb": "mongodb://admin:MioTech4ever!@192.168.31.140:27017" //PROD - Thomas
|
|
//"TabletDb": "mongodb://admin:mdlf2021!@localhost:27017" //PROD MDLF
|
|
"TabletDb": "mongodb://admin:MyMuseum2022!@51.77.222.154:27017", //PROD MyMuseum
|
|
//"TabletDb": "mongodb://admin:MyInfoMate2023!@135.125.232.116:27017" //PROD MyInfoMate
|
|
"PostgresConnection": "Host=localhost;Database=my_info_mate;Username=mym;Password=mym"
|
|
},*/
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"Microsoft.EntityFrameworkCore": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{ "Name": "Console" }
|
|
],
|
|
"Enrich": [ "FromLogContext" ]
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Tokens": {
|
|
"Secret": "WVD[&vAwis9=#883bM$FRc0kdKJdfkkjlksd4554qsasadd54df875ds4fqsf5Mw8h",
|
|
"AccessTokenExpiration": 86400,
|
|
"RefreshTokenExpiration": 518400
|
|
},
|
|
"SecuritySettings": {
|
|
"Secret": "kfexxgohdxeelabz",
|
|
"Issuer": "Manager",
|
|
"Audience": "the client of your app",
|
|
"IdType": "Name",
|
|
"TokenExpiryInHours": 2
|
|
},
|
|
"SupportedLanguages": [ "FR", "NL", "EN", "DE", "IT", "ES", "PL", "CN", "AR", "UK" ],
|
|
"OpenWeatherApiKey": "d489973b4c09ddc5fb56bd7b9270bbef",
|
|
"AI": {
|
|
"ApiKey": "AIzaSyCIf-mzp4Nzm5VwHL7LLzitt9z_bOOGMwc"
|
|
},
|
|
"Firebase": {
|
|
"CredentialsPath": "firebase-adminsdk.json"
|
|
},
|
|
"AppUrls": {
|
|
"ManagerApp": "https://manager.myinfomate.be",
|
|
"Landing": "https://myinfomate.be"
|
|
},
|
|
"Stripe": {
|
|
"SecretKey": "sk_test_51U14rjRLQgHvlM4X4ewATCOOIzdIfTZEJCwwZT9sfpWm9LkrISoSEHfgHbPhJTujdYdPdRyCnrDoo5Sf8NMyCrPT00RfYB8fSN",
|
|
"WebhookSecret": "whsec_oMjl06r2l5XyX76uwsFHSW9BqQp3AsoS",
|
|
"EssentielPriceId": "price_1U14zPRLQgHvlM4XijZzTvGW"
|
|
},
|
|
"Resend": {
|
|
"ApiKey": "re_auR5A7VS_MyeUB87ceiZp91hbXnwKriGN",
|
|
"FromEmail": "MyInfoMate <onboarding@myinfomate.be>",
|
|
"AdminEmail": "fransolet.thomas@gmail.com"
|
|
}
|
|
//"Urls": "http://[::]:80"
|
|
}
|