3
0

36 Commits

Author SHA1 Message Date
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
2586fb9c23 Properly handle/write response headers 2020-11-27 18:59:07 +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
Denis Arh
f4e6d2ae5a Refactor bootstraping procedure 2020-08-24 15:38:42 +02:00
Denis Arh
e1a91ee09e Optimize misc route binding
No need to use auth & log middleware in front of misc (debug, healthcheck) routes
2020-07-12 20:04:59 +02:00
Denis Arh
290315b746 Add healtcheck endpoint 2020-07-11 13:26:41 +02:00
Denis Arh
9e0883c937 Add origin (for action log) info to context 2020-05-22 07:16:14 +02:00
Denis Arh
9613bb7c85 Add middleware to add IP addr from req. to context 2020-05-22 07:16:14 +02:00
Denis Arh
db789e10fd Add debug routes for eventbus & corredor service 2020-03-26 19:07:13 +01:00
Denis Arh
29902db2b1 Refactor & improve application initialization 2020-01-18 07:05:10 +01:00
Denis Arh
62aa794b84 Move internal/auth to pkg/auth 2019-10-01 17:47:43 +02:00
Denis Arh
77ce40cf1a Move version, rand and organisation pkgs (internal=>pkg) 2019-10-01 17:42:26 +02:00
Denis Arh
5bfafd4adc Support run-as for automation scripts
Add grpc-server capabilities for system service (make jwt, find user by id)
Add jwt generation (via grpc) to compose for run-as automation-scripts
Add SuperUser for system-level tasks and operations that are ran in the background w/o initiator
and require permision checking
2019-08-23 13:49:36 +02:00
Denis Arh
bf8deb9e0c Explicitly log (on debug level) crashes on HTTP requests 2019-08-14 17:18:45 +02:00
Denis Arh
f75861c917 Add internal exec delay functionality for the API
Delay API startup options:
 - duration (WAIT_FOR)
 - service hosts (WAIT_FOR_SERVICES=host1:80 host2:3306)
 - service URL (WAIT_FOR_SERVICES=https://cortezaproject.org)
2019-07-17 10:23:30 +02:00
Denis Arh
ab4b74620f Improve settings auto-discovery, make it provisionable 2019-07-14 11:24:43 +02:00
Denis Arh
60ad32e440 Add support for error (panic) reporting through Sentry 2019-07-03 16:35:06 +02:00
Denis Arh
a8ae581e8f Cleaner CLI options definition (env keys as tags) 2019-05-30 02:08:01 +02:00
Denis Arh
8592aa8d35 Remove flags, improve ENV handling
Following https://12factor.net/config, Corteza internals are now configurable
ONLT via environmental variables.

See .env.example for details
2019-05-30 01:04:07 +02:00
Denis Arh
ba1118eb4f Update documentation 2019-05-29 22:42:42 +02:00
Denis Arh
22476933f4 Improve cli env setup & running 2019-05-26 08:41:20 +02:00
Denis Arh
36b32fa2fe Move logger package from internal to pkg 2019-05-24 13:30:48 +02:00
Denis Arh
5a9bce44e8 Cleanup internal, vendors, cleanup cmd/*
Introduces /pkg for non-intenral packages
2019-05-24 12:44:56 +02:00