Omar Polo
419e32b05e
sync
2021-05-03 16:12:53 +00:00
Omar Polo
c705ecb1ba
factorize all "only once" checks
...
and while there add some more
2021-05-03 16:11:28 +00:00
Omar Polo
7b2d743260
move pidfile & cgi to global vars
2021-05-01 12:17:42 +00:00
Omar Polo
7aa9258633
make more explicit the per-location roots test
2021-04-30 19:08:27 +00:00
Omar Polo
737a6b50c5
ensure %p (path) is always absolute
...
with the recent changes, sometimes the path may not start with a '/'.
This ensures that %s is ALWAYS an absolute path.
2021-04-30 19:07:37 +00:00
Omar Polo
fdea6aa0bc
allow ``root'' rule to be specified per-location block
2021-04-30 17:16:34 +00:00
Omar Polo
adbe6a6493
always use ensure_absolute_path and improve its error message
2021-04-30 16:17:07 +00:00
Omar Polo
17a04409b5
typo in docker example
2021-04-29 19:52:50 +00:00
Omar Polo
8070ffa70f
typo (again)
2021-04-29 19:50:25 +00:00
Omar Polo
7a4f742657
typo
2021-04-29 19:48:47 +00:00
Omar Polo
08ce6f5273
tweaked the readme a bit
2021-04-29 19:46:51 +00:00
Omar Polo
d06d6f4bba
sort tokens
2021-04-29 19:13:16 +00:00
Omar Polo
6a5e709beb
typo: missing Ic
2021-04-29 18:29:55 +00:00
Omar Polo
cc8c2901ad
added ``alias'' option to define hostname aliases for a server
2021-04-29 18:23:35 +00:00
Omar Polo
8e8b2e252c
pidfile support with `-P pidfile'
2021-04-28 12:45:22 +00:00
Omar Polo
2ef7f631db
wait for logger after fatal()
...
With -f, when the main process exits after a fatal() (usually) the
shell prompt is printed before the logger message.
This adds a small poll to wait for the logger process to exit.
2021-04-28 12:43:17 +00:00
Omar Polo
48b69cb2dc
fix some logging
...
- we can't use log_* or fatal() before logger_init
- err -> errx if errno isn't involved
2021-04-28 12:43:17 +00:00
Omar Polo
d89a9060f8
fatal: send log to logger
2021-04-28 12:43:17 +00:00
Omar Polo
42447f673f
send priority to the logger process
2021-04-28 12:43:17 +00:00
Omar Polo
9cc630aa63
added ``env'' option to define environment vars for CGI scripts
2021-04-28 12:43:17 +00:00
Omar Polo
e6ca8eb156
lower log priority for fatal errors from CRIT to ERR
...
found by Anna, thanks!
2021-04-28 12:43:17 +00:00
Omar Polo
419a423520
keep verbosity level after config reload
2021-04-28 12:42:36 +00:00
Omar Polo
c79b63f580
typo
2021-04-27 07:14:00 +00:00
Omar Polo
1b333122a9
typo
2021-04-26 20:58:06 +00:00
Omar Polo
578f13e4b2
add compat for reallocarray
2021-04-25 12:50:19 +00:00
Omar Polo
b5fdc32e75
use memcpy instead of bcopy
...
memcpy is ANSI C89, bcopy seems to be an history BSD function.
2021-04-25 12:49:21 +00:00
Omar Polo
5aba63956a
d->d_namelen doesn't seem to be available on linux
2021-04-25 12:45:17 +00:00
Omar Polo
e76f2c74b8
don't save the directory fd in c->pfd
...
scandir_fd already calls closedir, which in turns closes the fd
2021-04-25 12:19:06 +00:00
Omar Polo
11c986679a
sort the auto index alphabetically
2021-04-25 12:06:54 +00:00
Omar Polo
bb4be662f1
specify the develop process
2021-04-25 12:01:34 +00:00
Omar Polo
072e3557c4
build gmid statically inside the docker container
2021-04-24 19:54:22 +00:00
Omar Polo
0bfdcb1799
missing comma ,
2021-04-22 19:10:08 +00:00
Omar Polo
4d820b6cd2
use `text/x-patch' for .patch and .diff files
2021-04-21 07:51:29 +00:00
Omar Polo
5d1474a561
typo in comment
2021-04-20 09:53:33 +00:00
Omar Polo
3841a36930
restore signal handlers before exec'ing CGI scripts
2021-04-20 09:53:03 +00:00
Omar Polo
74c0c7e4ce
rename reschedule_* to yield_*
2021-04-20 09:40:09 +00:00
Omar Polo
3f47867e1d
typo... in the program name...
...
Just how retarded can I be?
2021-04-16 13:28:56 +00:00
Omar Polo
b7a9906151
typo
2021-04-15 20:14:18 +00:00
Omar Polo
dafaf46734
change description of `entrypoint'
2021-04-15 20:13:44 +00:00
Omar Polo
1de922891b
typos
2021-04-15 19:43:46 +00:00
Omar Polo
548c2849fa
hide output of etags
...
even the message "sh: etags: not such file or directory" or whatever
seems to be confusing for users, so silent it.
(maybe it would be better not to automatically generate the TAGS, but
it's so handy...)
2021-04-14 15:06:27 +00:00
Omar Polo
b33425827e
print the datetime when logging to stderr
2021-04-14 14:52:47 +00:00
Omar Polo
89541eeec0
define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
2021-04-13 06:59:54 +00:00
Omar Polo
b211d0f7d9
sync changelog
2021-04-12 21:13:51 +00:00
Omar Polo
9d092b607a
fix IRI-parsing bug
...
Some particularly crafted IRIs can cause a denial of service (DOS).
IRIs which have a trailing `..' segment and resolve to a valid IRI
(i.e. a .. that's not escaping the root directory) will make the
server process loop forever.
This is """just""" an DOS vulnerability, it doesn't expose anything
sensitive or give an attacker anything else.
2021-04-12 20:11:47 +00:00
Omar Polo
f2522b4313
check if sys/queue.h provides TAILQ_FOREACH_SAFE
2021-03-31 16:52:07 +00:00
Omar Polo
b8e64ccd44
list instead of fixed-size array for vhosts and locations
...
saves some bytes of memory and removes the limit on the maximum number
of vhosts and location blocks.
2021-03-31 16:32:18 +00:00
Omar Polo
e0ebdf2d94
sync changelog
2021-03-31 13:58:31 +00:00
Omar Polo
7e1df73d7d
fix mkdirs: create directories recursively
2021-03-31 13:56:58 +00:00
Omar Polo
33b455ada3
sync changes
2021-03-31 13:23:29 +00:00