forked from occupyhere/occupy.here
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforum.cgi.example
executable file
·36 lines (27 loc) · 1.1 KB
/
forum.cgi.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/lua
----------------------------
-- Begin of configuration --
-- For future use (p2p forum!)
location_name = 'nyc'
location_latlng = '40.709328,-74.011245'
-- Forum title
forum_title = 'OFFLINE WIKI'
-- If this CGI file is located in a different directory than the rest of the
-- forum, use forum_base to guide it back to the forum base directory. For
-- example if forum.cgi has been moved to /www/cgi-bin and all the other files
-- are in /www then set forum_base to '/www/'. Relative file system paths are
-- okay on some platforms, but OpenWRT expects an absolute path. You must
-- include a trailing slash.
forum_base = './'
-- Set public_root to the path where the forum appears publicly, including a
-- trailing slash. If you're serving all your files right off the server root
-- you'll want to use '/'.
public_root = '/openwrt-forum/'
-- End of configuration --
--------------------------
-- used for bootstrapping
package.path = package.path .. ";" .. forum_base .. "app/?.lua"
-- used after chdir to forum_base
package.path = package.path .. ";./app/?.lua"
local forum = require "forum"
forum.main()