--- Algernon Server Configuration --- For use with the samples --- Logging (will log to console if an empty string is given) --LogTo("algernon.log") --LogTo("/var/log/algernon.log") --- Clear the URL prefixes for the access permissions --- (see https://github.com/xyproto/permissions2 for an overview of the default paths) ClearPermissions() --- For the "bob" example, when running from this directory AddAdminPrefix("/samples/bob/admin") AddUserPrefix("/samples/bob/data") --- For the "bob" example, when running from the "bob" directory AddAdminPrefix("/admin") AddUserPrefix("/data") --- For the "chat" example, when running from this directory AddUserPrefix("/samples/chat/chat") --- For the "chat" example, when running from the "chat" directory AddUserPrefix("/chat") --- Reverse proxy examples AddReverseProxy("/api/", "http://localhost:8080") AddReverseProxy("/api/auth", "http://localhost:8100") -- Output server configuration after parsing this file and commandline arguments OnReady(function () print(ServerInfo()) end) -- Custom permission denied handler DenyHandler(function () content("text/html") print[[