Commit Graph

676 Commits

Author SHA1 Message Date
Riuga
8306f4caf1 Added log name change examples for apps 2023-03-29 10:40:50 -05:00
Riuga
ab6cf90517 Fix typo 2023-03-29 10:39:22 -05:00
Riuga
29a673fd44 Update changelog 2023-03-29 08:17:41 -05:00
Riuga
1e5c35df84 Add yaml parsing for rotate-logs 2023-03-29 08:16:59 -05:00
Riuga
7cfb8fcea9 Change rotating log close fn 2023-03-29 08:15:27 -05:00
Riuga
2f7c736076 Change addHunk to fast logging function 2023-03-29 08:11:13 -05:00
Riuga
6805a6ea1d Rename for clarity 2023-03-29 08:10:45 -05:00
Riuga
db54ccc830 Update withRotatingLogger to use a FastLogger to a rotating file 2023-03-29 08:09:41 -05:00
Riuga
7e3ed8c5a8 Refactor withLogger to use a FastLogger to rotating files or stderr
based on config
2023-03-29 08:05:50 -05:00
Riuga
f6ca7cc93d Update imports/exports 2023-03-29 08:04:16 -05:00
Riuga
1a6e828320 Add defaultRotationSpec 2023-03-29 08:02:55 -05:00
Riuga
194015e2e6 Update RotatingLog to wrap a FastLogger and its release callback 2023-03-29 07:58:19 -05:00
Riuga
38897c45ce Remove (unused) 2023-03-28 20:37:02 -05:00
Riuga
d2e30d662c Add monad-logger and fast-logger deps 2023-03-28 20:24:02 -05:00
Riuga
53bcb66a79 Add rotate log config option 2023-03-28 20:23:33 -05:00
Jappie Klooster
0c808b934a add note on example 2023-02-28 03:08:40 +01:00
Jappie Klooster
af322c536f bump unix compat 2022-12-14 10:12:08 -04:00
Jappie Klooster
b7c76427c2
Merge pull request #273 from snoyberg/point-nix-to-nixpkgs
Point nix module to nixpkgs
2022-12-14 09:51:16 -04:00
Jappie Klooster
b4f42ad5c2 Point nix module to nixpkgs
Points the nix bundle to nixpkgs.
This removes any redundancies, all nix code
is now in nixpkgs.
2022-12-14 09:37:40 -04:00
Jappie Klooster
662cabbd81
Merge pull request #272 from SupercedeTech/try-fix-test-stuite
try fix test suite
2022-05-19 09:49:59 -04:00
Jappie Klooster
e3dd2e10ae try fix test suite 2022-05-19 09:21:17 -04:00
Jappie Klooster
9f1feb4e4b
Merge pull request #270 from SupercedeTech/add-test-for-head-post-failure
Force usage of http-reverse-proxy above 0.6.0.1
2022-05-16 12:23:14 -04:00
Jappie Klooster
4a09f47171 set extra deps for reverse proxy 2022-05-16 12:07:59 -04:00
Jappie Klooster
35d8fa4786 Force usage of http-reverse-proxy above 0.6.0.1
This prevents a DoS attack by using a head followed by
a post.
There is a test to confirm this on keter as well.

This includes several internal changes as well,
such as
Getting rid of HMState alias,
and
remove perform action & adjustbound from withclient where block

chop up the withclient function to make it easier to understand,
alsom makes the flow of bound values more explicit in type
signatures.
2022-05-16 11:59:34 -04:00
Jappie Klooster
1bd7e25919
Merge pull request #269 from SupercedeTech/add-better-nix-infratstructure
Add better nix infrastructure that doesn't need to be kept up to date with cabal file
2022-05-13 11:13:05 -04:00
Jappie Klooster
3aa1dd53d1 Change nix to not be kept up to date with cabal file
These changes don't need to be kept up to date with cabal file

This also closes https://github.com/snoyberg/keter/issues/263

Fix all incoming issues with this change
2022-05-13 11:00:04 -04:00
Jappie Klooster
2a4dfde002
Merge pull request #268 from SupercedeTech/add-lts-19
add lts-19
2022-05-11 12:46:34 -04:00
Jappie Klooster
4acb7f6c5e
Merge pull request #267 from SupercedeTech/prepare-2.0
Prepare 2.0
2022-05-11 11:43:40 -04:00
Jappie Klooster
951165ca98 Add docs on config 2022-05-11 11:43:01 -04:00
Jappie Klooster
22539c8d7f add lts-19
closes https://github.com/snoyberg/keter/issues/262
2022-05-11 11:40:27 -04:00
Jappie Klooster
209d9e4652 Rename Types to Config, Move common out of config
Fix cabal file

Fix imports
2022-05-11 11:30:35 -04:00
Jappie Klooster
e69d5fd8ed Stop re-exporting common and rewrite from types
Common no longer re-exports half of Haskell.
2022-05-11 10:53:08 -04:00
Jappie Klooster
d79c5fb93d Move rewrite and reverse proxy in the keter namespace
This follows:
https://www.haskellforall.com/2021/05/module-organization-guidelines-for.html#naming-conventions

Also hide keyhelper,
I don't want to provide stability for that.
(or polute docs).

Add note on hiding the keyhelper
2022-05-11 10:24:36 -04:00
Jappie Klooster
b7262bfe1c
Merge pull request #261 from sethlivy/260-258
Switched from 'hspec' to 'tasty'.
2022-05-05 14:02:37 -04:00
sethlivy
572518a1ef Switched from 'hspec' to 'tasty'. 2022-05-05 11:50:31 -05:00
Jappie Klooster
461d9784e9
Merge pull request #259 from sethlivy/master
Renamed all "Data" modules to "Keter" modules.
2022-05-03 21:26:13 -04:00
sethlivy
418b7875a5 Renamed all Data modules to Keter modules. 2022-05-03 19:06:24 -05:00
Jappie Klooster
2c9d366ce7
Merge pull request #256 from sethlivy/master
Removed 'default', the package.
2022-05-02 15:08:34 -04:00
sethlivy
1106c0bcb5 Missed a line in the cabal file. Updated to 2.0. 2022-05-02 11:51:11 -05:00
sethlivy
59344ed3a0 Updated changelog. Hope the gitlog doesn't look weird. 2022-05-02 11:48:33 -05:00
sethlivy
afcaaa69a1 Forgot to remove 'default' from the executable. Sorry. 2022-05-02 10:14:15 -05:00
sethlivy
bdb503db41 Removed 'default', the package. 2022-05-02 10:03:30 -05:00
Jappie Klooster
43eb85fb05
Merge pull request #255 from sethlivy/master
Reorganized most .hs files into new /src directory.
2022-04-30 21:37:07 -04:00
sethlivy
9cb4b11788 Updated changelog. 2022-04-30 19:24:56 -05:00
sethlivy
1ac331e317 Moved most .hs files into new /src directory. 2022-04-30 17:33:32 -05:00
Jappie Klooster
2c0954268b
Merge pull request #253 from joyfulmantis/master
Better error messages for missing sudo when attempting psql connection
2022-04-27 15:57:01 -04:00
Nathan Maxson
64c218a490 Better error messages for no sudo when attempting psql connection 2022-04-27 21:33:36 +03:00
Jappie Klooster
a06b750771
Merge pull request #252 from SupercedeTech/always-restart-keter
change nix config to always restart keter
2022-04-21 17:34:32 -04:00
Jappie Klooster
13c95507e9
Merge pull request #251 from SupercedeTech/add-incoming-to-ci-builds
Add incoming to ci builds
2022-04-21 17:34:19 -04:00
Jappie Klooster
e83ae1851b change nix config to always restart keter
under load this becomes an issue.
I'm unsure why it crashed, most likely systemd decided
to send it a sigterm signal.
This is the config nginx uses as well.

Update changelog
2022-04-21 17:33:53 -04:00