Initial commit of LittleShop project (excluding large archives)
- 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>
This commit is contained in:
17
VapidKeyGenerator/Program.cs
Normal file
17
VapidKeyGenerator/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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(@"}");
|
||||
Reference in New Issue
Block a user