@@ -68,55 +68,110 @@ to sys.stderr with only logging of ERROR messages.
6868Configuring roundup-server
6969==========================
7070
71- The basic configuration file layout is as follows (take from the
71+ The basic configuration file is as follows (taken from the
7272``roundup-server.ini.example`` file in the "doc" directory)::
7373
74- [main]
75- port = 8080
76- ;host =
77- ;user =
78- ;group =
79- ;log_ip = yes
80- ;pidfile =
81- ;logfile =
82- ;template =
83- ;ssl = no
84- ;pem =
85-
86- [trackers]
87- ; Add one of these per tracker being served
88- name = /path/to/tracker/name
89-
90- Values ";commented out" are optional. The meaning of the various options
91- are as follows:
92-
93- **port**
94- Defines the local TCP port to listen for clients on.
95- **host**
96- Defines the hostname or IP number to listen for clients on. Only
97- required if `localhost` is not sufficient. If left empty (as opposed
98- to no `host` keyword in the config-file) this will listen to all
99- network interfaces and is equivalent to an explicit address `0.0.0.0`.
100- The use of an empty string to listen to all interfaces is deprecated
101- and will go away in a future version.
102- **user** and **group**
103- Defines the Unix user and group to run the server as. Only work if the
104- server is started as root.
105- **log_ip**
106- If ``yes`` then we log IP addresses against accesses. If ``no`` then we
107- log the hostname of the client. The latter can be much slower.
108- **pidfile**
109- If specified, the server will fork at startup and write its new PID to
110- the file.
111- **logfile**
112- Any unhandled exception messages or other output from Roundup will be
113- written to this file. It must be specified if **pidfile** is specified.
114- If per-tracker logging is specified, then very little will be written to
115- this file.
74+ [main]
75+
76+ # Host name of the Roundup web server instance.
77+ # If left unconfigured (no 'host' setting) the default
78+ # will be used.
79+ # If empty, listen on all network interfaces.
80+ # If you want to explicitly listen on all
81+ # network interfaces, the address 0.0.0.0 is a more
82+ # explicit way to achieve this, the use of an empty
83+ # string for this purpose is deprecated and will go away
84+ # in a future release.
85+ # Default: localhost
86+ host = localhost
87+
88+ # Port to listen on.
89+ # Default: 8080
90+ port = 8017
91+
92+ # Path to favicon.ico image file. If unset, built-in favicon.ico is used.
93+ # The path may be either absolute or relative
94+ # to the directory containing this config file.
95+ # Default: favicon.ico
96+ favicon = favicon.ico
97+
98+ # User ID as which the server will answer requests.
99+ # In order to use this option, the server must be run initially as root.
100+ # Availability: Unix.
101+ # Default:
102+ user = roundup
103+
104+ # Group ID as which the server will answer requests.
105+ # In order to use this option, the server must be run initially as root.
106+ # Availability: Unix.
107+ # Default:
108+ group =
109+
110+ # don't fork (this overrides the pidfile mechanism)'
111+ # Allowed values: yes, no
112+ # Default: no
113+ nodaemon = no
114+
115+ # Log client machine names instead of IP addresses (much slower)
116+ # Allowed values: yes, no
117+ # Default: no
118+ log_hostnames = no
119+
120+ # File to which the server records the process id of the daemon.
121+ # If this option is not set, the server will run in foreground
122+ #
123+ # The path may be either absolute or relative
124+ # to the directory containing this config file.
125+ # Default:
126+ pidfile =
127+
128+ # Log file path. If unset, log to stderr.
129+ # The path may be either absolute or relative
130+ # to the directory containing this config file.
131+ # Default:
132+ logfile =
133+
134+ # Set processing of each request in separate subprocess.
135+ # Allowed values: debug, none, thread, fork.
136+ # Default: fork
137+ multiprocess = fork
138+
139+ # Tracker index template. If unset, built-in will be used.
140+ # The path may be either absolute or relative
141+ # to the directory containing this config file.
142+ # Default:
143+ template =
144+
145+ # Enable SSL support (requires pyopenssl)
146+ # Allowed values: yes, no
147+ # Default: no
148+ ssl = no
149+
150+ # PEM file used for SSL. A temporary self-signed certificate
151+ # will be used if left blank.
152+ # The path may be either absolute or relative
153+ # to the directory containing this config file.
154+ # Default:
155+ pem =
156+
157+ # Roundup trackers to serve.
158+ # Each option in this section defines single Roundup tracker.
159+ # Option name identifies the tracker and will appear in the URL.
160+ # Option value is tracker home directory path.
161+ # The path may be either absolute or relative
162+ # to the directory containing this config file.
163+ [trackers]
164+
165+ demo = /trackers/demo
166+ sysadmin = /trackers/sysadmin
167+
168+ Additional notes for each keyword:
169+
116170**template**
117171 Specifies a template used for displaying the tracker index when
118- multiple trackers are being used. The variable "trackers" is available
119- to the template and is a dict of all configured trackers.
172+ multiple trackers are being used. It is processed by TAL and
173+ the variable "trackers" is available to the template and is a
174+ dict of all configured trackers.
120175**ssl**
121176 Enables the use of SSL to secure the connection to the roundup-server.
122177 If you enable this, ensure that your tracker's config.ini specifies
@@ -130,6 +185,11 @@ are as follows:
130185 Make sure the name part doesn't include any url-unsafe characters like
131186 spaces. Stick to alphanumeric characters and you'll be ok.
132187
188+ To generate a config.ini in the current directory (note it will
189+ overwrite an existing file) from the roundup-server command line use::
190+
191+ roundup_server -p 8017 -u roundup --save-config demo=/trackers/demo \
192+ sysadmin=/trackers/sysadmin
133193
134194Users and Security
135195==================
0 commit comments