Imported upstream version 1.5
[manpages-zh.git] / raw / man5 / svnserve.conf.5
blob0e0f6dace71c2cebd30bb6563e0462fb5127a0be
1 .\" You can view this file with:
2 .\" nroff -man [filename]
3 .\"
4 .TH svnserve.conf 5
5 .SH NAME
6 svnserve.conf \- Repository configuration file for svnserve
7 .SH SYNOPSIS
8 .TP
9 \fIrepository-path\fP\fB/conf/svnserve.conf\fP
10 .SH DESCRIPTION
11 \fBsvnserve.conf\fP controls the behavior of the \fBsvnserve\fP daemon
12 on a per-repository basis.  It is located in the \fBconf\fP
13 subdirectory of the repository.
14 .PP
15 The overall structure of the file is the same as the structure of
16 Subversion user configuration files.  At the top level are sections,
17 which are specified by words in square brackets; inside each section
18 are variable definitions of the form "variable = value".  Lines
19 beginning with '#' are ignored.  \fBsvnserve.conf\fP currently uses
20 only one section named "general", and supports the following
21 variables:
22 .PP
23 .TP 5
24 \fBanon-access\fP = \fBnone\fP|\fBread\fP|\fBwrite\fP
25 Determines the access level for unauthenticated users.  \fBwrite\fP
26 access allows all repository operations.  \fBread\fP access allows all
27 operations except committing and changing revision properties.
28 \fBnone\fP access allows no access.  The default level is \fBread\fP.
29 .PP
30 .TP 5
31 \fBauth-access\fP = \fBnone\fP|\fBread\fP|\fBwrite\fP
32 Determines the access level for authenticated users, using the same
33 access levels as above.  The default level is \fBwrite\fP.
34 .PP
35 .TP 5
36 \fBpassword-db\fP = \fIfilename\fP
37 Sets the location of the password database.  \fIfilename\fP may be
38 relative to the repository conf directory.  There is no default value.
39 The password database has the same overall format as this file.  It
40 uses only one section "users"; each variable within the section is a
41 username, and each value is a password.
42 .PP
43 .TP 5
44 \fBrealm\fP = \fIrealm\-name\fP
45 Sets the authentication realm of the repository.  If two repositories
46 have the same password database, they should have the same realm, and
47 vice versa; this association allows clients to use a single cached
48 password for several repositories.  The default realm value is the
49 path to the repository, relative to the server process's virtual
50 repository root.
51 .SH EXAMPLE
52 The following example \fBsvnserve.conf\fP allows read access for
53 authenticated users, no access for anonymous users, points to a passwd
54 database in the same directory, and defines a realm name.
55 .PP
56 .nf
57  [general]
58  anon-access = none
59  auth-access = read
60  password-db = passwd
61  realm = My First Repository
62 .fi
63 .PP
64 The file "passwd" would look like:
65 .PP
66 .nf
67  [users]
68  joeuser = joepassword
69  jayrandom = randomjay
70 .fi
71 .SH SEE ALSO
72 .BR svnserve (8)