Beispiel #1
0
        static void Main(string[] args)
        {
            var builder = new HostBuilder()
                          .ConfigureServices((hostContext, services) =>
            {
                services.UseBeetlexHttp(o =>
                {
                    o.LogToConsole     = true;
                    o.ManageApiEnabled = false;
                    o.Port             = 80;
                    o.SetDebug();
                    o.LogLevel = BeetleX.EventArgs.LogType.Warring;
                    JWTHelper.Init();
                },
                                        typeof(Program).Assembly);
            });

            builder.Build().Run();
        }
Beispiel #2
0
 public static void Init()
 {
     byte[] key = new byte[128];
     new Random().NextBytes(key);
     Default = new JWTHelper("beetlex", "beetlex", key);
 }