forked from occupyhere/occupy.here
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforum.cgi.example
More file actions
executable file
·32 lines (24 loc) · 1.03 KB
/
forum.cgi.example
File metadata and controls
executable file
·32 lines (24 loc) · 1.03 KB
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
#!/usr/bin/lua
----------------------------
-- Begin of configuration --
-- For future use (p2p forum!)
location_name = 'nyc'
location_latlng = '40.709328,-74.011245'
-- 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 '../'. Absolute file system paths should
-- also work here (i.e., '/www/'). You must use 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()