3
0

26 Commits

Author SHA1 Message Date
Denis Arh
c99095eba6 Print panic stacktrace directly if LOG_DEBUG is enabled 2022-07-21 08:37:31 +02:00
Denis Arh
23eb6e5292 Cleaning up debug toolings 2022-04-14 08:46:50 +02:00
Denis Arh
a81f35d5a2 Nice api landing & 404 pages 2022-02-21 18:56:09 +01:00
Denis Arh
22c47d6ba7 Add webconsole 2022-02-17 17:21:01 +01:00
Denis Arh
32c013f089 Fix broken __routes debug route 2022-02-17 17:21:00 +01:00
Denis Arh
e0bcaf8662 Add route with access to server-log buffer 2022-02-17 17:21:00 +01:00
Denis Arh
2082908f39 Improve HTTP server startup, add wrapping handler
HTTP server now initializes much earlier and mounts "waiting"
router with debugging, version and health check routes.

When server is fully activated it switches to "active"
router.

Shutdown stage is also handled with catch-all route.
2022-02-17 17:21:00 +01:00
Denis Arh
d74239c735 Improve HTTP server startup, add wrapping handler
HTTP server now initializes much earlier and mounts "waiting"
router with debugging, version and health check routes.

When server is fully activated it switches to "active"
router.

Shutdown stage is also handled with catch-all route.
2022-02-13 18:52:59 +01:00
Denis Arh
d103d60a3d Refactor option definitions 2022-02-08 09:13:56 +01:00
Denis Arh
9fe21dd8ce Tweaked CORS settings 2022-01-22 21:47:51 +01:00
Denis Arh
6c3bef0750 Refactor token-issuer (ex-jwt) to be more robust and configurable 2022-01-21 15:31:10 +01:00
Denis Arh
59ec77e204 Refactor JWT implementation 2022-01-18 21:50:18 +01:00
Denis Arh
3ffa0ef8be Fixing codebase after JWT lib switch 2022-01-11 15:35:05 +01:00
Denis Arh
60020f8510 Upgrade go-chi&co 2022-01-11 10:53:49 +01:00
Denis Arh
5d6945cec9 Add locale handling, translation dec/enc and serving 2021-08-23 19:10:21 +02:00
Denis Arh
41dc9d8658 Basepath cleanup & improvements 2021-05-21 09:35:52 +02:00
Denis Arh
1d59a3acf2 Allow custom URL prefix for all corteza endpoints
Add new env. variables and options
 - HTTP_BASE_URL to control URL prefix, defaults to /
 - HTTP_SSL_TERMINATED to explicitly set if Corteza is running behind HTTPS
Refresh and document webapp/Makefile with more dev tasks
Fix all absolute URLs in applications, logos, icons
Improve logic behind integrated webapp serving, inject/replace <base href> tag according to URL prefix
Prevent mounting api & webapps to the same base
2021-05-09 16:47:19 +02:00
Denis Arh
79ed77a379 Fixed typos across the codebase (can not, cannot) 2021-03-17 17:25:05 +01:00
Denis Arh
5e9545e9ab Switched api docs from statik to go:embed 2021-02-24 06:40:23 +01:00
Denis Arh
53be013377 Implement new auth UI, deprecate auth API endpoints 2021-02-23 07:34:10 +01:00
Denis Arh
629cdc06cd More info about api, docs, webapp endpoints 2020-12-14 14:51:40 +01:00
Denis Arh
9b0308f36c Simplify test/demo webapp installation 2020-11-10 14:46:41 +01:00
Denis Arh
65bc428406 Stabilise API docs serving, move it under API root 2020-11-09 07:08:46 +01:00
Denis Arh
bfdb1d8426 OpenAPI docs 2020-11-05 19:13:26 +01:00
Denis Arh
ed8fc547f7 Config. environment (throughenv var 'ENVIRONMENT') 2020-11-04 15:13:27 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00