Commit Graph

8 Commits

Author SHA1 Message Date
Xavier Del Campo Romero 2d2f9e4492
man1: Replace LICENSE/AUTHORS with COPYRIGHT
LICENSE is not copied to the installation prefix, so adding a short
copyright notice instead might be a better reference.
2023-09-27 22:13:52 +02:00
Xavier Del Campo Romero f7293744ce
Makefile: add install target 2023-09-27 22:08:23 +02:00
Xavier Del Campo Romero 653924ba87
slcl.1: Remove obsolete TODO
This feature was already implemented by:

commit 0822a982ef
Author: Xavier Del Campo Romero <xavi.dcr@tutanota.com>
Date:   Sat Jul 8 00:54:59 2023 +0200

    Implement file/directory removal
2023-09-27 01:48:18 +02:00
Xavier Del Campo Romero 75f1f223d4
Do some minor rebranding
Despite designed around portability and minimalism, I feel slcl no
longer aligns with the philosophical views from the suckless project.
Therefore, I think it was appropriate to unlink its branding from it.
2023-08-01 02:25:30 +02:00
Xavier Del Campo Romero aefd6c6fda
Add man page for usergen(1) 2023-03-16 01:57:04 +01:00
Xavier Del Campo Romero 955ae07f55
slcl.1: Update TODO
- User quota was implemented by commit ff8da797a.
- Public file sharing was implemented by commit 2e1b1313.
2023-03-16 01:18:04 +01:00
Xavier Del Campo Romero ff8da797a1
Implement user quota
This feature allows admins to set a specific quota for each user, in
MiB. This feature is particularly useful for shared instances, where
unlimited user storage might be unfeasible or even dangerous for the
server.

Also, a nice HTML5 <progress> element has been added to the site that
shows how much of the quota has been consumed.

If no quota is set, slcl falls back to the default behaviour i.e.,
assume unlimited storage.

Limitations:

- While HTTP does specify a Content-Length, which determines the length
of the whole request, it does not specify how many files are involved
or their individual sizes.
- Because of this, if multiple files are uploaded simultaneously, the
whole request would be dropped if user quota is exceeded, even if not
all files exceeded it.
- Also, Content-Length adds the length of some HTTP boilerplate
(e.g.: boundaries), but slcl must rely on this before accepting the
whole request. In other words, this means some requests might be
rejected by slcl because of the extra bytes caused by such boilerplate.
- When the quota is exceeded, slcl must close the connection so that
the rest of the transfer is cancelled. Unfortunately, this means no
HTML can be sent back to the customer to inform about the situation.
2023-03-06 05:51:49 +01:00
Xavier Del Campo Romero d83e8ad1ba
Add man page 2023-02-28 01:43:59 +01:00