1
0
mirror of https://git.kore.io/kore.git synced 2024-11-11 20:59:07 +01:00
Commit Graph

1216 Commits

Author SHA1 Message Date
Joris Vink
9be72aff57 bump size of http_version array. 2018-06-23 17:23:45 +02:00
Joris Vink
fc58007cc1 remove lingering character 2018-06-22 23:02:57 +02:00
Joris Vink
8aaf7aaf79 Alter where the version number comes from.
Now if we are a git repo we fetch the branch name and
commitid to build the version string. If there is no
git repo we'll look at the RELEASE file.
2018-06-22 14:24:42 +02:00
Joris Vink
d5ca2b42c6 invoke platform specific compiler for kodev build. 2018-06-19 22:46:55 +02:00
Joris Vink
7b20192e02 install kodev manual page. 2018-06-19 22:40:55 +02:00
Joris Vink
b147ce4d25 2018 2018-06-19 15:07:28 +02:00
Joris Vink
46182608c6 most of the existing docs are updated. 2018-06-19 12:03:10 +02:00
Joris Vink
296b1693ac don't forward argc/argv for kodev create.
Means we don't have to do weird shit that doesn't work on !macos anyway.
2018-06-15 20:51:48 +02:00
Joris Vink
c257299fa4 add shorthand for building with fsanitize. 2018-06-12 19:43:10 +02:00
Joris Vink
8802ad5f40 mention that 2.x is outdated. 2018-06-09 20:08:39 +02:00
Joris Vink
21b1d5a905 be honest with documentation. 2018-06-09 12:58:23 +02:00
Joris Vink
929e54e880 add client_verify_depth to example config. 2018-06-09 12:55:09 +02:00
Joris Vink
e475bd0c92 Add configurable x509 chain validation depth.
You can now per domain configure the depth for x509 chain validation:
	client_verify_depth	1

By default this is 1.

While here change around some log messages and properly set
the callback for x509 verification rather then via hoops and loops.
2018-06-09 12:50:50 +02:00
Joris Vink
9e12b2c6dd Use sigaction() for signals.
Don't duplicate signal setup code between parent and worker processes.
2018-05-25 20:49:02 +02:00
Joris Vink
3dfad1b7d6 remove unneeded include. 2018-05-04 15:56:56 +02:00
Joris Vink
439a3b36f0 Add kore_strtodouble().
Use it for http_argument_get_float() and http_argument_get_double().
2018-05-04 15:55:35 +02:00
Joris Vink
b7669f49f7 typo 2018-05-03 21:40:50 +02:00
Joris Vink
68f5e33768 kodev improvements.
Allow KORE_SOURCE and KORE_FLAVOR to come from the environment,
overriding any configured kore_source or kore_flavor configuration
setting from the build.conf for the application.

I wanted an easier way of switching between Kore trees while hacking
on some of my apps, this is it.
2018-05-03 21:27:52 +02:00
Joris Vink
46633e3978 Flesh out the new kodev manual page. 2018-04-26 19:06:55 +02:00
Guy Nankivell
4852d5db3f Adds specifics of the kore.conf to kodev(1) 2018-04-26 21:12:31 +12:00
guynan
5a45a57592
Merge pull request #244 from guynan/man
Man
2018-04-26 20:07:28 +12:00
Guy Nankivell
7efc968f3d Adjusts wording for greater accuracy. 2018-04-26 10:19:17 +12:00
Joris Vink
3a283cd05c let KORE_MSG_WORKER_ALL include sender. 2018-04-24 20:11:48 +02:00
Joris Vink
5487950f63 cut off port from the domain when needed. 2018-04-24 20:11:41 +02:00
Guy Nankivell
5ec94965eb More comprehensive page detailing configurations 2018-04-24 11:21:21 +12:00
Guy Nankivell
66e9f4db77 Adds manpage for kodev 2018-04-24 09:56:35 +12:00
Joris Vink
98af796acd Improve kodev a tiny bit.
kodev is creating x509s and writing out the dh parameters if they
do not exist in the application each time. This is annoying if
you explictly specified NOTLS=1 in the kore_flavor build options.

So just tell kodev to not do this if NOTLS=1 is present.
2018-04-18 19:51:25 +00:00
Joris Vink
6665ad9c45 add comment that master should always work. 2018-04-13 16:07:04 +02:00
Joris Vink
658bb2936e minor style 2018-04-13 16:05:59 +02:00
Joris Vink
92bd546935 Remove unused argument. 2018-04-13 16:04:33 +02:00
Joris Vink
bfd4851c85 minor style fixes 2018-04-13 07:41:22 +02:00
Sebastiaan
a3cab0d97b Websocket memory leak fix when using kore_websocket_send() to send data. (#238) 2018-04-13 07:40:37 +02:00
Joris Vink
f7678946a1 don't set our own exception on invalid parameters. 2018-04-11 13:32:56 +02:00
Joris Vink
d73a9114c0 Improve http_response() for server side errors.
In case http_response() is called with an error code indicating
a server side error (>= 500) do not append any headers set by the
caller.
2018-04-11 13:04:26 +02:00
Joris Vink
4ab028633a If a python handler failed, don't fatal on purpose.
Instead log and send an internal error status back to the client.

This should be OK as long as the exception doesn't happen after
the caller called req.response() already.
2018-04-11 13:00:30 +02:00
Joris Vink
ab956fc97a better pyko readme 2018-04-10 22:48:13 +02:00
Joris Vink
bb210db3df let pyko skeletons setup 'appdb' if available.
If a worker can pickup PYKO_CONNINFO from the environment it will register a
new pgsql connection called 'appdb' tied to the given connection string.
2018-04-10 18:26:22 +02:00
Joris Vink
a35dfc6d06 Teach kodev create about pyko applications.
Now you can create a pyko application skeleton using kodev:

	$ kodev create -p myapp

Not sure if this functionality will remain in kodev, but for now i'm undecided.
2018-04-10 16:20:50 +02:00
Joris Vink
bcbed3b349 let us know why we failed to open a config file. 2018-04-10 15:16:05 +02:00
Joris Vink
85cff54a5f don't let kore_parse_config_file() call fclose.
It doesn't own the FILE pointer, it shouldn't call fclose() on it,
thats just confusing.
2018-04-10 14:39:57 +02:00
Joris Vink
43a0aef29f prefix HTTP defines when exporting them to python. 2018-04-10 14:35:52 +02:00
Joris Vink
6f45db6a01 pyko: call kore_python_path() on the module path. 2018-04-10 14:32:48 +02:00
Joris Vink
45260b491b finally got fed up with the "is exhausted" spam. 2018-04-10 14:11:06 +02:00
Joris Vink
fd53f48cec pyko: allow running without app argument.
If no app argument was given, assume we should use the cwd
and interpret "." as the cwd as well.

makes it easier to do things like:

	$ pyko -frn
2018-04-09 20:50:47 +02:00
Joris Vink
5b0772b646 pyko: reshuffle comment. 2018-04-09 20:36:05 +02:00
Joris Vink
bafb99445f pyko: change to module directory before starting. 2018-04-09 20:35:11 +02:00
Joris Vink
65666942e6 we're still in dev, not rc. 2018-04-09 14:23:55 +02:00
Joris Vink
ceb67f172c fix building with NOHTTP=1. 2018-04-09 12:20:26 +00:00
Joris Vink
a33ce78a19 it's time. 2018-04-09 14:14:00 +02:00
Joris Vink
26f0677915 be consistent with the app path example 2018-04-09 13:10:05 +02:00