webmcp
view demo-app/config/demo.lua @ 561:e13a3fa97aad
Removed unused pointer for database connection to avoid compiler warning
| author | jbe | 
|---|---|
| date | Fri Feb 05 15:37:48 2021 +0100 (2021-02-05) | 
| parents | 8579adac1cc6 | 
| children | 
 line source
     2 -- open and set default database handle
     3 config.db = {
     4   engine='postgresql',
     5   dbname='webmcp_demo'
     6 }
     8 listen{
     9   { proto = "tcp", host = "::1", port = 8080 },
    10   { proto = "tcp", host = "127.0.0.1", port = 8080 },
    11   { proto = "interval", delay = 60, handler = function() io.stderr:write("Background job executed here\n") end }
    12 }
    14 -- 'request.get_relative_baseurl()' should be replaced by the absolute
    15 -- base URL of the application, as otherwise HTTP redirects will not be
    16 -- standard compliant
    17 --request.set_absolute_baseurl(request.get_relative_baseurl())
    19 -- uncomment the following lines, if you want to use a database driven
    20 -- tempstore instead of a file-based tempstore (for flash messages):
    21 --
    22 -- function tempstore.save(blob)
    23 --   return Tempstore:create(blob)
    24 -- end
    25 -- function tempstore.pop(key)
    26 --   return Tempstore:data_by_key(key)
    27 -- end
