Commit Graph

46 Commits

Author SHA1 Message Date
Ilja Neumann
1aa2b1df07 Fix TLS-Certificate not set correctly 2020-03-25 16:55:58 +01:00
Ilja Neumann
6e33472b40 Make TLS-Certificate configurable
Currently the proxy generates certificates on every start for dev purposes. This commit adds an option to make this behaviour configurable.
This also removes the dependency on konnectd`s crypto code and copies it instead, as this library is a first version which is not meant for usage by other services.

A proper cert-generation lib should be added to ocis-pkg instead. Then this code can be refactored to use it.
2020-03-25 09:44:18 +01:00
David Christofas
a86e745c75 use labeled break 2020-03-24 10:55:09 +01:00
David Christofas
1cd3f8936d add unit tests 2020-03-24 10:43:01 +01:00
David Christofas
eb539bc78e implement review feedback 2020-03-24 10:42:47 +01:00
David Christofas
a718777747 route requests based on pattern or query parameters 2020-03-23 19:13:46 +01:00
Ilja Neumann
60a1e6a143 Proxy client urls in default configuration #19 2020-03-23 13:01:29 +01:00
A.Unger
747e345b08 rename reverseproxy -> rp 2020-03-18 12:12:12 +01:00
A.Unger
ae8150dd57 added logging info 2020-03-18 12:12:12 +01:00
A.Unger
52b81a8605 add default runtime redirects 2020-03-18 12:12:12 +01:00
A.Unger
b0e8dbba85 remove mapstructure from config directives 2020-03-18 12:12:12 +01:00
A.Unger
356ad9c9e7 add debug lines 2020-03-18 12:12:12 +01:00
A.Unger
972b2ffe30 document why we use ParseConfig on server before hook 2020-03-17 14:39:13 +01:00
A.Unger
c74e5f5434 document ParseConfig 2020-03-17 14:35:40 +01:00
A.Unger
e2fec340eb code style 2020-03-17 14:34:45 +01:00
A.Unger
40a27c9e93 save allocation 2020-03-17 14:34:32 +01:00
A.Unger
c9010a3016 move commands to its scope 2020-03-16 17:17:56 +01:00
A.Unger
52bb4c0e1a delete helpers file 2020-03-16 12:21:06 +01:00
A.Unger
e4fee19170 remove unecessary mapstruct 2020-03-16 12:09:28 +01:00
A.Unger
6c1ed02acd arrange config.Config 2020-03-16 11:27:27 +01:00
A.Unger
fc1389b087 call ParseConfig on server command 2020-03-16 11:26:45 +01:00
A.Unger
c863d6f71f abstract ParseConfig to its own scope 2020-03-16 11:26:31 +01:00
A.Unger
86f7220526 remove hacky embedded-config flag 2020-03-16 11:25:50 +01:00
A.Unger
739d226d09 add embedded-config flag, override config.File if present 2020-03-13 10:52:42 +01:00
A.Unger
8c1f12a164 add loader helper (temporary fix, move away from the helper pattern) 2020-03-13 10:52:22 +01:00
A.Unger
f0d9b00f38 load config from embedded-config if running on embedded mode 2020-03-13 10:51:55 +01:00
Jörn Friedrich Dreyer
2aba428eb1 add apachevhost option, fix logging defaults
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-03-06 16:47:26 +01:00
A.Unger
94d83b4f38 add structured logging on url parsing failure 2020-03-04 21:13:07 +01:00
A.Unger
e0ca0fbd75 add defensive code on policy checks 2020-03-04 21:13:07 +01:00
A.Unger
ea5dfc8f4f move MultiHostReverseProxy logic away from the server command 2020-03-04 21:13:07 +01:00
A.Unger
de2d9bc0d1 use updated config structure 2020-03-04 21:13:07 +01:00
A.Unger
1f04e6857a update config 2020-03-04 21:13:07 +01:00
A.Unger
b8cff1f556 allow for settable handler option 2020-03-04 21:13:07 +01:00
A.Unger
062cb6ed36 add policy to config struct 2020-03-04 21:13:07 +01:00
A.Unger
cdbb79a401 implement MultiHostReverseProxy 2020-03-04 21:13:07 +01:00
A.Unger
98ac2967f9 change error message wording 2020-03-04 21:13:07 +01:00
A.Unger
01a805c89d rename location -> backend 2020-02-26 09:36:21 +01:00
A.Unger
42b5399aa3 provided an example config file 2020-02-24 14:18:03 +01:00
A.Unger
23f977f28e added json tag on routes 2020-02-24 14:16:54 +01:00
A.Unger
6b51e70ddc use ocis-pkg logger 2020-02-24 13:37:39 +01:00
A.Unger
2690898b1d use options logger instead of creating a new one 2020-02-24 13:22:13 +01:00
A.Unger
36aa719b35 added config options 2020-02-24 13:21:02 +01:00
A.Unger
4267103bd5 moved init code away from main routine 2020-02-24 13:20:39 +01:00
A.Unger
ee23aee6ee added necessary basic routes for the proxy to work nicely with ocis single binary 2020-02-24 11:21:31 +01:00
A.Unger
60bd1d8af7 added hardcoded routes for the reverse proxy to bypass authentication and phoenix 2020-02-24 11:02:52 +01:00
Jörn Friedrich Dreyer
59bd9a93d2 Initial Commit
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-02-23 16:13:39 +01:00