Commits
- Commit:
12042ad7003375b746b4e2bccbf33ae7a90cbb98
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a configure script and some compat
tested on openbsd, alpine and void
- Commit:
0be51733ef271183e8164b8de1871cba634c1508
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve logs
now we log the full IRI requested (before was only the path) and the
response line (even for CGI).
- Commit:
2debfe2b1fdef94dbbc9264d9528f7f021c0a324
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop useless field
was probably added to distinguish between AF_INET and AF_INET6, to use
different functions for logging. But it wasn't really used, and now
we use getnameinfo anyway.
- Commit:
6119e13e8aa794988b3875614a0a2c3ce0f07e7b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
moving "default type" from global options to server options
- Commit:
05c23a54ea7a2fdfb35d08cdaedea01ab3d5b427
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add "lang" server option
- Commit:
a010b0ddc5aa8cf49207b0ab87d36be6ebb320cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move mimes into the struct config
- Commit:
982069a120a3d36483427ce00b9cf90a8bf4daab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add "mime" and "default type" option for the configuration
- Commit:
0fbe79b33c1d16b0611851e2019558ce8888a02e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve mime handling
we still have an hardcoded list, but this implements the API needed to
modify the mappings.
- Commit:
d3a08f4d172687d4e3e60e7faaa8830bb7f9f9db
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reorganize: move bunch of functions to server.c
cgi.c wasn't really needed; it better to group all the server related
functions together, cgi or not. Now gmid.c contains only startup and
utility code.
- Commit:
881a9dd9c2aebbf73f333dd3d8be4ce5400f717f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
split into two processes: listener and executor
this way, we can sandbox the listener with seccomp (todo) or capsicum
(already done) and still have CGI scripts. When we want to exec, we
tell the executor what to do, the executor executes the scripts and
send the fd backt to the listener.
- Commit:
7edc455ab4ba2c408558876339ac77a3104d0de2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move cgi stuff to its own file
- Commit:
5bc3c98ed4e25bc68a72dd6cd6676b25d2cdf9cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add protocols to the config
- Commit:
f7b816dc398efba2fb1cd4e2982ee3b23eed624f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
dafb57b8af432d800219a8e17900e1ac56a65c14
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sandbox also on FreeBSD with capsicum
- Commit:
15902770073dd67df3a9af0f6da7d63bfb031d72
- From:
- Omar Polo <op@omarpolo.com>
- Date:
conf & vhosts
* gmid.c (main): changed behaviour: daemon off by default
(main): changed -c in -C (cert option)
(main): changed -k in -K (key option, for consistency with -C)
(main): added -c to load a configuration
(main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
(handle_handshake): add vhosts support