Skip to content

Commit 7f6c0e5

Browse files
author
Richard Jones
committed
roundup-server now has a configuration file (-C option)
1 parent 5007a59 commit 7f6c0e5

File tree

5 files changed

+182
-102
lines changed

5 files changed

+182
-102
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Feature:
1515
from Vickenty Fesunov)
1616
- hide "(list)" popup links when issue is only viewable
1717
- roundup-server options -g and -u accept both ids and names (sf bug 983769)
18+
- roundup-server now has a configuration file (-C option)
1819
- added mod_python interface (see installation.txt)
1920

2021

doc/admin_guide.txt

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Administration Guide
33
====================
44

5-
:Version: $Revision: 1.12 $
5+
:Version: $Revision: 1.13 $
66

77
.. contents::
88

@@ -67,6 +67,55 @@ Configuration for "BasicLogging" implementation:
6767
In both cases, if no logfile is specified then logging will simply be sent
6868
to sys.stderr with only logging of ERROR messages.
6969

70+
Configuring roundup-server
71+
==========================
72+
73+
The basic configuration file layout is as follows (take from the
74+
``roundup-server.ini.example`` file in the "doc" directory)::
75+
76+
[server]
77+
port = 8080
78+
;hostname =
79+
;user =
80+
;group =
81+
;log_ip = yes
82+
;pidfile =
83+
;logfile =
84+
85+
; Add one of these per tracker being served
86+
[tracker_url_component]
87+
home = /path/to/tracker
88+
89+
Values ";commented out" are optional. The meaning of the various options
90+
are as follows:
91+
92+
**port**
93+
Defines the local TCP port to listen for clients on.
94+
**hostname**
95+
Defines the local hostname to listen for clients on. Only required if
96+
"localhost" is not sufficient.
97+
**user** and **group**
98+
Defines the Unix user and group to run the server as. Only work if the
99+
server is started as root.
100+
**log_ip**
101+
If ``yes`` then we log IP addresses against accesses. If ``no`` then we
102+
log the hostname of the client. The latter can be much slower.
103+
**pidfile**
104+
If specified, the server will fork at startup and write its new PID to
105+
the file.
106+
**logfile**
107+
Any unhandled exception messages or other output from Roundup will be
108+
written to this file. It must be specified if **pidfile** is specified.
109+
If per-tracker logging is specified, then very little will be written to
110+
this file.
111+
**example_tracker** sections
112+
These are used to specify which Roundup trackers are to be served up by
113+
roundup-server. Each tracker has its own ``[section]`` with a single
114+
``home`` value defined pointing to the tracker's home. The section name is
115+
used in the URL to select the appropriate reacker. Make sure the name part
116+
doesn't include any url-unsafe characters like spaces. Stick to
117+
alphanumeric characters and you'll be ok.
118+
70119

71120
Users and Security
72121
==================

doc/roundup-server.1

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
.TH ROUNDUP-SERVER 1 "24 January 2003"
1+
.TH ROUNDUP-SERVER 1 "27 July 2004"
22
.SH NAME
3-
roundup-server \- start roundup server
3+
roundup-server \- start roundup web server
44
.SH SYNOPSIS
55
\fBroundup-server\fP [\fIoptions\fP] [\fBname=\fP\fItracker home\fP]*
66
.SH OPTIONS
77
.TP
8+
\fB-C\fP \fIfile\fP
9+
Use options read from the configuration file (see below).
10+
.TP
811
\fB-n\fP \fIhostname\fP
9-
sets the host name
12+
Sets the host name.
1013
.TP
1114
\fB-p\fP \fIport\fP
12-
sets the port to listen on
13-
.TP
14-
\fB-l\fP \fIfile\fP
15-
sets a filename to log to (instead of stdout)
15+
Sets the port to listen on.
1616
.TP
1717
\fB-d\fP \fIfile\fP
18-
daemonize, and write the server's PID to the nominated file
18+
Daemonize, and write the server's PID to the nominated file.
19+
.TP
20+
\fB-l\fP \fIfile\fP
21+
Sets a filename to log to (instead of stdout). This is required if the -d
22+
option is used.
1923
.TP
2024
\fB-h\fP
2125
print help
@@ -29,6 +33,8 @@ pairs on the command-line. For convenience, you may edit the
2933
TRACKER_HOMES variable in the roundup-server file instead.
3034
Make sure the name part doesn't include any url-unsafe characters like
3135
spaces, as these confuse the cookie handling in browsers like IE.
36+
.SH CONFIGURATION FILE
37+
See the "admin_guide" in the Roundup "doc" directory.
3238
.SH AUTHOR
3339
This manpage was written by Bastian Kleineidam
3440
<[email protected]> for the Debian distribution of roundup.

doc/roundup-server.ini.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
; This is a sample configuration file for roundup-server. See the
2+
; admin_guide for information about its contents.
3+
[server]
4+
port = 8080
5+
;hostname =
6+
;user =
7+
;group =
8+
;log_ip = yes
9+
;pidfile =
10+
;logfile =
11+
12+
13+
; Add one of these per tracker being served
14+
[tracker_url_component]
15+
home = /path/to/tracker
16+

0 commit comments

Comments
 (0)