comparison dgl/dgamelaunch.conf @ 24:ce26225f7d9d

Switch to the Git version of dgamelaunch.
author John "Elwin" Edwards
date Sun, 20 Oct 2013 17:45:38 -0700
parents f501c8dd6884
children dd72d2dd923f
comparison
equal deleted inserted replaced
23:070a9ced4d3e 24:ce26225f7d9d
1 # rlgallery.org configuration file for dgamelaunch 1 # This is a sample dgamelaunch configuration file. Only bash-style comments
2 # are allowed, such as this. Each configuration option will be explained
3 # along with its default value.
4
2 5
3 6
4 # Global config variables: 7 # Global config variables:
5 8
6 9
7 # Max amount of registered users to allow. Has no effect if dgl was 10 # Max amount of registered users to allow. Has no effect if dgl was
8 # compiled with SQLite 11 # compiled with SQLite
9 maxusers = 4096 12 maxusers = 64000
10 13
11 # Allow registration of new nicks? (yes or no) 14 # Allow registration of new nicks? (yes or no)
12 allow_new_nicks = yes 15 allow_new_nicks = yes
13 16
14 # Max length for newly registered nicks. Must be less than 20. 17 # Max length for newly registered nicks. Must be less than 20.
15 # By default, NetHack only stores the first 10 chars of a name into 18 # By default, NetHack only stores the first 10 chars of a name into
16 # the record/logfile. 19 # the record/logfile.
17 maxnicklen = 10 20 maxnicklen = 10
18 21
19 # Set the default watching-screen sorting mode. Can be one of 22 # Set the default watching-screen sorting mode. Can be one of
20 # "unsorted", "username" or "idletime". Unsorted is the default. 23 # "username", "game", "windowsize", "starttime" or "idletime".
24 # "username" is the default.
21 sortmode = "username" 25 sortmode = "username"
22 26
27 # Set the columns displayed in the watching-screen. Each column definition
28 # must have four elements as:
29 # [ "<display title>", "<sortname>", <Screen column>, "<printf format>" ]
30 #
31 # <sortname> may be "unsorted", "username", "game", "windowsize", "starttime",
32 # "duration", "idletime", or (if shmem is enabled) "watchers".
33 #
34 watch_columns = [ ["", "", 1, "%s)"],
35 ["User", "username", 4, "%-15s"],
36 ["Game", "game", 21, "%-11s"],
37 ["Term", "windowsize", 34, "%s"],
38 ["Idle", "idletime", 43, "%-10s"],
39 ["Started", "starttime", 60, "%s"]
40 ]
41
23 # Path to a prepared chroot jail. 42 # Path to a prepared chroot jail.
24 chroot_path = "/var/dgl/" 43 chroot_path = "/var/dgl"
25 44
26 # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc 45 # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc
27 dglroot = "/dgldir/" 46 dglroot = "/dgldir/"
28 47
29 # Server ID string 48 # Strings to be replaced in every banner
30 server_id = "Roguelike Gallery - rlgallery.org" 49 # you can have either direct string replacements, like
31 50 # "$FOO" = "BAR", or you can get the server time with
32 # From inside the jail, location of a banner file, the topmost line will be 51 # "$FOO" = timeformat("%F %T")
52 # for the timeformat parameter string format, see man strftime
53 bannervars = [ "$MOTDTIME" = "2011.10.08",
54 "$SERVERID" = "$ATTR(14)Roguelike Gallery - rlgallery.org$ATTR()",
55 "$DATETIME" = timeformat("%F %T")
56 ]
57
58 # From inside the jail, location of a banner file, which is
33 # shown in submenus that cannot be defined separately. 59 # shown in submenus that cannot be defined separately.
34 # Some string substitution is done for the file: 60 # Some string substitution is done for every banner file contents:
35 # $VERSION replaced with "dgamelaunch v" + dgl version number. 61 # - bannervars from above
36 # $SERVERID replaced with the server_id string, as defined above. 62 # - $VERSION replaced with "dgamelaunch v" + dgl version number.
63 # - $USERNAME replaced with logged-in user's name, or with "[Anonymous]"
64 # - $INCLUDE(filename) the named file will be inserted here.
37 banner = "/dgldir/dgl-banner" 65 banner = "/dgldir/dgl-banner"
38 66
39 # The following two options are fairly insecure. They will force us to 67 # The following two options are fairly insecure. They will force us to
40 # load the password/group database into memory while still having root 68 # load the password/group database into memory while still having root
41 # privileges. Replace them with shed_uid/shed_gid entries as soon as 69 # privileges. Replace them with shed_uid/shed_gid entries as soon as
49 #shed_user = "games" 77 #shed_user = "games"
50 # shed_group: group name to shed privileges to 78 # shed_group: group name to shed privileges to
51 #shed_group = "games" 79 #shed_group = "games"
52 80
53 # Preferably, you may use the respective gids/uids. This is for Debian: 81 # Preferably, you may use the respective gids/uids. This is for Debian:
54 # Use the rodney account instead of games:games
55 shed_uid = 501 82 shed_uid = 501
56 shed_gid = 501 83 shed_gid = 501
57 84
58 # The defaults are usually just fine for this. passwd refers to the file 85 # Locale. Leaving this out, dgamelaunch will not explicitly set locale.
59 # that stores the user database, and lockfile is only used internally by 86 locale = "en_US.UTF-8"
60 # dgamelaunch. 87
61 # passwd doesn't matter if dgl was compiled with SQLite, as the name of 88 # Default TERM, used if the user's $TERM is unknown.
62 # the sqlite database will be defined at compile time. 89 # If undefined, dgamelaunch will just terminate in that case.
63 passwd = "/dgldir/dgl-login" 90 default_term = "xterm"
64 lockfile = "/dgldir/dgl-lock" 91
92 # Should dgl send select-UTF8-charset escape code? (that is: ESC % G)
93 # default is no.
94 #utf8esc = yes
95
96 # Should dgl allow XON/XOFF? Default is "yes", meaning "don't touch it".
97 # "no" disables XON/XOFF
98 #flowcontrol = no
99
100 # Maximum time in seconds user can idle in the dgamelaunch menus
101 # before dgl exits. Default value is 0, which disables the idling timer.
102 # Does not apply to external programs or config editors.
103 # For setting game idle time, use max_idle_time in the game DEFINE.
104 # menu_max_idle_time = 1024
105
106 # Passwd refers to the file that stores the user database.
107 # The default passwd file is "/dgl-login" for flat-text database, and for
108 # sqlite, whatever value was defined for the sqlite database at compile time.
109 # This is also used for the shared memory key, if shmem is enabled at compile
110 # time.
111 #passwd = "/dgl-login"
112
113 # Lockfile is used only when dgl was compiled without sqlite.
114 #lockfile = "/dgl-lock"
65 115
66 # 116 #
67 # define some commands that are run when something happens. format is 117 # define some commands that are run when something happens. format is
68 # commands [ <time> ] = <command> ... 118 # commands [ <time> ] = <command> ...
69 # 119 #
70 # <time> can be one of: 120 # <time> can be one of:
71 # dglstart = when someone telnets in 121 # dglstart = when someone telnets in
72 # login = when user has logged in 122 # login = when user has logged in
73 # register = right after a new user is registered 123 # register = right after a new user is registered
74 # gamestart = just before a game is started 124 # gamestart = just before a game is started
125 # gameend = after a game ends (see also per-game "postcommand" define)
75 # 126 #
76 # <command> is: 127 # <command> is:
77 # mkdir "foo" = create a directory "foo" 128 # mkdir "foo" = create a directory "foo"
78 # chdir "foo" = change current work dir to "foo" 129 # chdir "foo" = change current work dir to "foo"
79 # cp "foo" "bar" = copy file "foo" to "bar", overwriting previous "bar" 130 # cp "foo" "bar" = copy file "foo" to "bar", overwriting previous "bar"
80 # ifnxcp "foo" "bar" = copy file "foo" to "bar", if "bar" doesn't exist 131 # ifnxcp "foo" "bar" = copy file "foo" to "bar", if "bar" doesn't exist
81 # unlink "foo" = delete file "foo" 132 # unlink "foo" = delete file "foo"
82 # setenv "foo" "bar" = set environment variable "foo" to "bar" 133 # setenv "foo" "bar" = set environment variable "foo" to "bar"
83 # exec "foo" "bar" = execute "foo" with "bar" as it's param 134 # exec "foo" "bar" = execute "foo" with "bar" as it's param
135 # rawprint "foo" = output string "foo"
84 # chpasswd = do the change password prompting, if logged in 136 # chpasswd = do the change password prompting, if logged in
85 # chmail = do the change email prompting, if logged in 137 # chmail = do the change email prompting, if logged in
86 # watch_menu = go to the watching menu 138 # watch_menu = go to the watching menu
87 # quit = quit dgl 139 # quit = quit dgl
88 # ask_login = do the login prompting, if not logged in 140 # ask_login = do the login prompting, if not logged in
89 # ask_register = do register new user prompting, if not logged in and 141 # ask_register = do register new user prompting, if not logged in and