1
0
Fork 0
Commit graph

81 Commits

Autor SHA1 Nachricht Datum
Sebastian Tobie 8d9b870820 added a small helper function 2022-11-18 14:10:59 +01:00
Sebastian Tobie b5800f09c2 updated dependencies 2022-11-18 13:59:33 +01:00
Sebastian Tobie 0f9fded567 added a new sitetype for sites that need access to the pool outside of requests 2022-11-14 10:37:23 +01:00
Sebastian Tobie 1b64551582 fixed logging, sites configuration and other fixes 2022-11-14 09:08:33 +01:00
Sebastian Tobie bf60ad409c command is useless 2022-11-13 21:21:40 +01:00
Sebastian Tobie d744ff8205 added comment 2022-11-13 10:40:52 +01:00
Sebastian Tobie 4244e2728d fixed another bunch of bugs 2022-11-13 10:36:51 +01:00
Sebastian Tobie 7cf90595e6 fixed an error in the module name 2022-11-13 10:18:25 +01:00
Sebastian Tobie ecdf2c5b77 added submodule command for simple webservers 2022-11-13 10:13:32 +01:00
Sebastian Tobie 076e26ae0e switched json with jsonld 2022-11-11 22:16:02 +01:00
Sebastian Tobie 2129c6339c removed the commented out marshaling 2022-11-07 18:45:22 +01:00
Sebastian Tobie 3ead80fe16 splitted Middleware.Sites into PreSetupMiddleware.PreSetup and PostSetupMiddleware.PostSetup
this fixes the problem where dependency problems are fixed
2022-11-07 18:45:04 +01:00
Sebastian Tobie e47609087f fixes #1 2022-11-07 18:41:47 +01:00
Sebastian Tobie 03b6c3d059 upgrade pgx from v4 to v5 and tern to v2 2022-11-06 12:29:08 +01:00
Sebastian Tobie 890dddb04f clarified the commend on an method 2022-11-06 11:05:16 +01:00
Sebastian Tobie 440d23f463 added an compiletime test to ensure that SAML is an AuthenticationHandler 2022-11-06 10:58:13 +01:00
Sebastian Tobie 93c1b7a8b0 added an wellknown middleware 2022-11-06 10:53:38 +01:00
Sebastian Tobie 487a8b4c64 changed logging to zerolog and raised the minimal go version to 1.19 2022-11-06 10:52:24 +01:00
Sebastian Tobie d0c86eb95b updated pongo2 dependency 2022-11-05 08:45:48 +01:00
Sebastian Tobie 5c33058038 updated documentation 2022-11-05 08:44:37 +01:00
Sebastian Tobie 207a7ff58a removed the now unnessary buildflag 2022-11-05 08:31:48 +01:00
Sebastian Tobie 044721ac8e moved the constants from auth to contatnts 2022-11-05 08:31:12 +01:00
Sebastian Tobie 9c6feec4ea replaced phuslu/log with zerolog 2022-11-05 08:29:17 +01:00
Sebastian Tobie 4ce395c6c1 added license 2022-11-05 00:06:47 +01:00
Sebastian Tobie 32d5e95bb0 added site as dependency 2022-11-05 00:04:45 +01:00
Sebastian Tobie 8e0fda30ba cleaned up the code and updated dependencies 2022-11-05 00:03:21 +01:00
Sebastian Tobie 6e18b66f11 updated jwt depndency 2022-11-04 23:55:39 +01:00
Sebastian Tobie 72cb4d16af splitted the site into configsite and teardownsite 2022-11-04 23:49:35 +01:00
Sebastian Tobie 2589f42da5 errors in the configuration of the middleware are critical now. 2021-11-11 23:18:16 +01:00
Sebastian Tobie 7d937967c4 revised the Interfaces.
The Middleware type can now fully used without porblems.
2021-11-11 23:06:48 +01:00
Sebastian Tobie 1c151cdd04 contants have been moved to an own package 2021-11-11 23:05:07 +01:00
Sebastian Tobie 198881d347 in an panic the log now contains the stacktrace 2021-11-10 19:06:23 +01:00
Sebastian Tobie 37f4f912a9 im now using pongo2 v4 instead of templates.
The html/template caused only grief.
2021-11-10 19:05:52 +01:00
Sebastian Tobie 865e38d813 created a new Type AccountConstant.
This should help a bit with linting
2021-11-07 21:41:48 +01:00
Sebastian Tobie 327adffebf the LogMiddleware now produces less severe log enttries, which should keep the log more calm 2021-11-07 21:40:44 +01:00
Sebastian Tobie 6d43861ffc some bigger changes
- The detection of unix and TCP sockets is much better;
- The configuration is now easier exachangable;
- middleware doesn't get lost;
- the defaults func is now supplying the config it needs into the defaults;
2021-11-07 18:51:39 +01:00
Sebastian Tobie aa0592bca9 restructured the server startup 2021-11-06 20:59:56 +01:00
Sebastian Tobie 8594622cae made an huge code cleanup.
go-toml is now not required. Its up to the implementation how it loads/dumps the config.
2021-11-06 13:42:07 +01:00
Sebastian Tobie 608bc051d2 fixed some pelling mistakes 2021-10-25 22:28:39 +02:00
Sebastian Tobie 2fff12e6f4 created an methodd to stroe templates global and the server can now serve multiple addresses in parrallel. 2021-10-24 18:39:48 +02:00
Sebastian Tobie 7896a45398 the contextkey now refers now to the function for getting the database. 2021-02-28 14:01:31 +01:00
Sebastian Tobie 1f800c0089 cleaned the code a bit up 2021-02-27 14:04:35 +01:00
Sebastian Tobie d38cf41d23 added a check if the migrator fails 2021-02-27 14:03:20 +01:00
Sebastian Tobie b7b70afba4 added a workaround to use a embed.fs filesystem. 2021-02-27 11:54:10 +01:00
Sebastian Tobie e15e855531 sql gets unset in logging of the migrations 2021-02-27 09:40:54 +01:00
Sebastian Tobie ab82f41ec4 fixed the migrations 2021-02-27 09:34:19 +01:00
Sebastian Tobie 230314d53f the database middelware. 2021-02-27 00:38:06 +01:00
Sebastian Tobie dcabcdff25 added the Middleware interface
the middleware interface helps with middleware that requires to have
backgroundtasks or open connections.
2021-02-27 00:36:11 +01:00
Sebastian Tobie c3305139d4 changed the Config class to support the new interface to log objects 2021-02-27 00:35:00 +01:00
Sebastian Tobie 9e63f58de6 splitted the go1.16 featured function to its own file and added an Wrapper for phuslu/log for pgx 2021-02-14 11:58:51 +01:00