source: code/trunk/marisa.conf.5@ 65

Last change on this file since 65 was 65, checked in by yakumo.izuru, 21 months ago

M i m a s a m a ! ! !

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 2.4 KB
RevLine 
[65]1.Dd 2021-11-03
2.Dt PARTAGE.CONF 5
3.Os POSIX.1-2017
4.Sh NAME
5.Nm partage.conf
6.Nd partage configuration file format
7.Sh DESCRIPTION
8.Nm
9is the configuration file for the HTTP file sharing system,
10.Xr partage 1 .
11.Sh CONFIGURATION
12Here are the settings that can be set:
13.Bl -tag -width Ds
14.It Ic listen Ar socket
15Have the program listen on
16.Ar socket .
17This socket can be specified either as a TCP socket:
18.Ar host:port
19or as a Unix socket:
20.Ar /path/to/partage.sock .
21When using Unix sockets, the program will serve content using the
22.Em FastCGI
23protocol.
24.It Ic user Ar user
25Username that the program will drop privileges to upon startup. When
26using Unix sockets, the owner of the socket will be changed to this user.
27.It Ic group Ar group
28Group that the program will drop privileges to upon startup (require that
29.Ic user
30is set). When using Unix sockets, the owner group of the socket will be
31changed to this group.
32.It Ic chroot Pa dir
33Directory to chroot into upon startup. When specified, all other path
34must be set within the chroot directory.
35.It Ic baseuri Ar uri
36Base URI to use when constructing hyper links.
37.It Ic rootdir Pa dir
38Directory containing static files.
39.It Ic tmplpath Pa dir
40Directory containing template files.
41.It Ic filepath Pa dir
42Directory where uploaded files must be written to.
43.It Ic metapath Pa dir
44Directory where metadata for uploaded files will be saved.
45.It Ic filectx Pa context
46URI context to use for serving files.
47.It Ic maxsize Ar size
48Maximum size per file to accept for uploads.
49.It Ic expiry Ar time
50Default expiration time to set for uploads.
51.El
52.Sh EXAMPLE
53Configuration suitable for use with
54.Xr httpd 8
55using fastcgi:
56.Bd -literal -offset indent
57listen = /run/partage.sock
58baseuri = https://domain.tld
59user = www
60group = daemon
61chroot = /var/www
62rootdir = /htdocs/static
63filepath = /htdocs/files
64metapath = /htdocs/meta
65tmplpath = /htdocs/templates
66filectx = /d/
67maxsize = 10737418240 # 10 Gib
68expiry = 86400 # 24 hours
69.Ed
70
71Mathing
72.Xr httpd.conf 5
73configuration:
74.Bd -literal -offset indent
75server "domain.tld" {
76 listen on * tls port 443
77 connection { max request body 10737418240 }
78 location "*" {
79 fastcgi socket "/run/partage.sock"
80 }
81}
82types { include "/usr/share/misc/mime.types" }
83.Ed
84
85.Sh SEE ALSO
86.Xr partage 1 ,
87.Xr partage-trash 1 ,
88.Xr httpd 8,
89.Xr httpd.conf 5
90.Sh AUTHORS
91.An Willy Goiffon Aq Mt dev@z3bra.org
Note: See TracBrowser for help on using the repository browser.