- BTCPay Server integration - TeleBot Telegram bot - Review system - Admin area - Docker deployment configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
692 B
C#
17 lines
692 B
C#
using WebPush;
|
|
|
|
var vapidKeys = VapidHelper.GenerateVapidKeys();
|
|
|
|
Console.WriteLine("VAPID Keys Generated:");
|
|
Console.WriteLine("====================");
|
|
Console.WriteLine($"Public Key: {vapidKeys.PublicKey}");
|
|
Console.WriteLine($"Private Key: {vapidKeys.PrivateKey}");
|
|
Console.WriteLine();
|
|
Console.WriteLine("Add these to your appsettings.json:");
|
|
Console.WriteLine(@"{");
|
|
Console.WriteLine(@" ""WebPush"": {");
|
|
Console.WriteLine($@" ""VapidPublicKey"": ""{vapidKeys.PublicKey}"",");
|
|
Console.WriteLine($@" ""VapidPrivateKey"": ""{vapidKeys.PrivateKey}"",");
|
|
Console.WriteLine($@" ""Subject"": ""mailto:admin@littleshop.local""");
|
|
Console.WriteLine(@" }");
|
|
Console.WriteLine(@"}"); |