("App:SecretsLoaded");
+
if (User?.Identity?.IsAuthenticated == true)
{
var userId = User.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value;
@@ -421,6 +429,20 @@
© 2024 QR Rapido. @Localizer["AllRightsReserved"]
+
+
+ @appName v@appVersion |
+ @appEnvironment
+ @if (secretsLoaded)
+ {
+ ✓
+ }
+ else if (appEnvironment == "Production")
+ {
+ ✗
+ }
+
+
diff --git a/appsettings.Production.json b/appsettings.Production.json
index c41cb6b..f9a44f0 100644
--- a/appsettings.Production.json
+++ b/appsettings.Production.json
@@ -1,12 +1,15 @@
{
"ApplicationName": "QRRapido-Prod",
- "Environment": "Prod",
+ "App": {
+ "Environment": "Production",
+ "SecretsLoaded": false
+ },
"Support": {
"TelegramUrl": "https://t.me/jobmakerbr",
"FormspreeUrl": "https://formspree.io/f/xpwynqpj"
},
"ConnectionStrings": {
- "MongoDB": "mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/QrRapido?replicaSet=rs0&authSource=admin"
+ "MongoDB": "LOADED_FROM_DOCKER_SECRET"
},
"Serilog": {
"SeqUrl": "http://172.17.0.1:5341",
@@ -22,10 +25,20 @@
}
}
},
+ "Authentication": {
+ "Google": {
+ "ClientId": "LOADED_FROM_DOCKER_SECRET",
+ "ClientSecret": "LOADED_FROM_DOCKER_SECRET"
+ },
+ "Microsoft": {
+ "ClientId": "LOADED_FROM_DOCKER_SECRET",
+ "ClientSecret": "LOADED_FROM_DOCKER_SECRET"
+ }
+ },
"Stripe": {
"PublishableKey": "pk_live_51Rs42SB6bFjHQirAXIhK2fetsfH7MDYWeTT5jiRGYpIS7g5fCCT0XzLK1tIOdxUYXG4gwN4OEAzuVFw9GTmvq7iM00iJmUSZWB",
- "SecretKey": "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",
- "WebhookSecret": "whsec_gYri7qNVHc18sREu2eXnjdRzklwRf3hI"
+ "SecretKey": "LOADED_FROM_DOCKER_SECRET",
+ "WebhookSecret": "LOADED_FROM_DOCKER_SECRET"
},
"ResourceMonitoring": {
"Enabled": true,
@@ -77,4 +90,4 @@
"QRRapidoApp": "Information"
}
}
-}
\ No newline at end of file
+}
diff --git a/appsettings.json b/appsettings.json
index 6a3aff2..2f3af63 100644
--- a/appsettings.json
+++ b/appsettings.json
@@ -5,7 +5,9 @@
"TaglinePT": "Gere QR codes em segundos!",
"TaglineES": "¡Genera códigos QR en segundos!",
"TaglineEN": "Generate QR codes in seconds!",
- "Version": "1.0.0"
+ "Version": "1.0.0",
+ "Environment": "Development",
+ "SecretsLoaded": false
},
"ConnectionStrings": {
"MongoDB": "mongodb://localhost:27017/QrRapido"