PARTAGE.CONF(5) File Formats Manual PARTAGE.CONF(5)

partage.confpartage configuration file format

partage.conf is the configuration file for the HTTP file sharing system, partage(1).

Here are the settings that can be set:

socket
Have the program listen on socket. This socket can be specified either as a TCP socket: host:port or as a Unix socket: /path/to/partage.sock. When using Unix sockets, the program will serve content using the protocol.
user
Username that the program will drop privileges to upon startup. When using Unix sockets, the owner of the socket will be changed to this user.
group
Group that the program will drop privileges to upon startup (require that user is set). When using Unix sockets, the owner group of the socket will be changed to this group.
dir
Directory to chroot into upon startup. When specified, all other path must be set within the chroot directory.
uri
Base URI to use when constructing hyper links.
dir
Directory containing static files.
dir
Directory containing template files.
dir
Directory where uploaded files must be written to.
dir
Directory where metadata for uploaded files will be saved.
context
URI context to use for serving files.
size
Maximum size per file to accept for uploads.
time
Default expiration time to set for uploads.

Configuration suitable for use with httpd(8) using fastcgi:

listen      = /run/partage.sock
baseuri     = https://domain.tld
user        = www
group       = daemon
chroot      = /var/www
rootdir     = /htdocs/static
filepath    = /htdocs/files
metapath    = /htdocs/meta
tmplpath    = /htdocs/templates
filectx     = /d/
maxsize     = 10737418240 # 10 Gib
expiry      = 86400       # 24 hours

Mathing httpd.conf(5) configuration:

server "domain.tld" {
	listen on * tls port 443
	connection { max request body 10737418240 }
	location "*" {
		fastcgi socket "/run/partage.sock"
	}
}
types { include "/usr/share/misc/mime.types" }

partage(1), partage-trash(1), httpd(8,) httpd.conf(5)

Willy Goiffon <dev@z3bra.org>

2021-11-03 POSIX.1-2017