1
0
Fork 0
Commit graph

61 Commits

Autor SHA1 Nachricht Datum
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
Sebastian Tobie dceb47069e httpserver is now better usable to handle multiple domains
BREAKING CHANGE:
Authentication is domain dependend and runs in the site registration.
2021-01-24 16:25:58 +01:00
Sebastian Tobie c2ca39ec19 the Chain now aborts the chain if user is not logged in 2021-01-24 12:10:29 +01:00
Sebastian Tobie fa0b81abe7 current dependencies 2021-01-24 00:43:58 +01:00
Sebastian Tobie 9817b81b92 use the global constant for accounts. 2021-01-24 00:43:31 +01:00
Sebastian Tobie 2c798d6006 added debugging information about the demains 2021-01-23 12:00:51 +01:00
Sebastian Tobie e6794c7c98 describe menus.Rauth 2021-01-23 11:15:47 +01:00
Sebastian Tobie 9973e186ee added support for domains 2021-01-23 11:14:33 +01:00
Sebastian Tobie d827664a69 extended the Menu so it can use the Account information. 2021-01-21 21:48:59 +01:00
Sebastian Tobie fc435441ce documented the Constants better 2021-01-20 00:13:25 +01:00
Sebastian Tobie 37e8ac835e The menus can now be accessed from the handlers 2021-01-20 00:12:54 +01:00
Sebastian Tobie a1b11a6adb added a menu modul.
this module make it easier to use templating.
2021-01-19 23:44:35 +01:00
Sebastian Tobie cca8fcc237 renamed HttpClient to HTTPClient. 2021-01-19 00:19:33 +01:00
Sebastian Tobie ba2ed57968 cleaned up the LogMiddleware 2021-01-19 00:18:08 +01:00
Sebastian Tobie a69e026b70 added Require User 2021-01-19 00:13:35 +01:00
Sebastian Tobie 8084ee4538 added HEAD Method to the handlers 2021-01-18 20:18:26 +01:00
Sebastian Tobie 07218169a6 static index.html files are now atuomatic used for the directoryroot. 2021-01-18 20:18:03 +01:00
Sebastian Tobie ec3f82590d added the funcs module to define useful functions 2021-01-18 20:00:32 +01:00
Sebastian Tobie e35cef18d4 fixed the pointer to an pointer. 2021-01-16 19:20:38 +01:00
Sebastian Tobie 7cdf43ef30 documented the enum 2021-01-16 19:16:59 +01:00
Sebastian Tobie 5bf5ac8bb2 added an teardownfunction to stop goroutines from the sites. 2021-01-16 19:06:47 +01:00