Joachim Bauch
5797111033
Log what backends are added/changed/removed on reload.
2020-10-06 16:37:35 +02:00
Joachim Bauch
cd4d930835
Update reload tests
...
- Add test that reloads without changes.
- Add test that removes backend from shared host.
2020-10-06 16:37:33 +02:00
Joachim Bauch
aa0191ef7e
Don't allow reload with old-style backend configurations.
2020-10-06 16:36:53 +02:00
Joachim Bauch
f7ed6addb7
Always load backends in the order they are configured.
2020-10-06 16:36:49 +02:00
Joachim Bauch
bef54339e3
Merge pull request #52 from hosting-de-labs/feature/reload-backendconfigs
...
Feature: Reload Backends on SIGHUP
2020-10-06 15:37:59 +02:00
Oliver Dick
8d29c9cda9
Feature:
...
- Reload Backend Configuration without destroying unchanged backends
- Only used when configured with backends parameter
2020-10-06 15:10:38 +02:00
Joachim Bauch
67e66c0e5a
Log something when proxy publisher/subscriber is deleted.
2020-09-24 12:43:27 +02:00
Joachim Bauch
76f327b919
Log session id when creating publish/subscriber.
2020-09-16 16:51:11 +02:00
Joachim Bauch
7e3a7af9a3
Use dedicated (shorter) timeout for proxy requests.
...
This will prevent the overall MCU timeout to expire on the first proxy
request if that takes too long. With the shorter proxy timeout, the other
proxy servers will be retried if the first request timed out.
2020-09-16 10:13:09 +02:00
Joachim Bauch
612b1d7217
Mark session as used on resume.
2020-09-16 10:11:52 +02:00
Joachim Bauch
d437dbbc0e
Mark session as used when connection is closed to prevent from timing out too early.
2020-09-16 10:08:46 +02:00
Joachim Bauch
80194c4e1d
Don't perform request to proxy if context is already done.
2020-09-16 09:23:36 +02:00
Joachim Bauch
7bd9ee07b8
Merge pull request #50 from SuperSandro2000/patch-1
...
Remove duplicated argument
2020-09-09 16:31:42 +02:00
Sandro
ff960c22b3
Remove duplicated argument
2020-09-09 14:46:08 +02:00
Joachim Bauch
767d283600
Handle case where etcd cluster is not available during startup.
2020-09-09 14:42:18 +02:00
Joachim Bauch
adce45162e
Default to proxy url type "static" if none is configured.
2020-09-07 17:07:48 +02:00
Joachim Bauch
198117a8d0
Fix commented default value of "urltype".
2020-09-07 17:06:40 +02:00
Joachim Bauch
dbcbad8b99
Add changelog.
2020-09-07 09:46:45 +02:00
Joachim Bauch
a9b6b44b14
Update syntax to match other commented values.
2020-09-07 09:44:39 +02:00
Joachim Bauch
5206490fef
Change log message if session was resumed.
2020-09-07 09:12:32 +02:00
Joachim Bauch
1e11eac284
proxy: Check complete session id when resuming.
2020-09-07 09:10:33 +02:00
Joachim Bauch
bde0301637
proxy: Generate random session hash keys.
...
This is to ensure that session ids are only valid until the proxy is restarted.
2020-09-07 09:01:34 +02:00
Joachim Bauch
73903315a9
Handle "bye" proxy messages.
2020-09-07 08:56:17 +02:00
Joachim Bauch
b6a0597fb7
"curl" and "python3" are no longer required to build the server.
...
Since #29 the continent map is included in the repository and doesn't get
downloaded on each build.
2020-09-01 13:47:56 +02:00
Joachim Bauch
34de2b9b58
Merge pull request #47 from strukturag/proxy-list-etcd
...
Add support for fetching proxy URLs from etcd cluster.
2020-09-01 12:48:46 +02:00
Joachim Bauch
c4d2bbe21f
Merge pull request #48 from strukturag/geoip-overrides
...
Add option to override GeoIP lookups (e.g. for local addresses).
2020-09-01 12:46:18 +02:00
Joachim Bauch
64991a0a0e
Add option to override GeoIP lookups (e.g. for local addresses).
2020-09-01 12:41:00 +02:00
Joachim Bauch
dcf533b8f1
Add support for fetching proxy URLs from etcd cluster.
2020-08-31 17:24:04 +02:00
Joachim Bauch
744b514e9f
Support multiple token key formats in proxy configurations.
2020-08-31 17:23:47 +02:00
Joachim Bauch
18bfb0daa1
Update logging flags.
...
Timestamp already enabled by etcd logger, so only add filename.
2020-08-31 15:51:53 +02:00
Joachim Bauch
804e558e96
Switch to builtin "context" package now that we can assume Go 1.7
2020-08-31 13:58:28 +02:00
Joachim Bauch
b7d5f2a639
Merge pull request #44 from strukturag/proxy-tokens-etcd
...
Add support for fetching proxy tokens from etcd cluster.
2020-08-31 13:47:36 +02:00
Joachim Bauch
28241f5f87
Merge pull request #46 from strukturag/reload-proxy-list
...
Reload list of proxy URLs on SIGHUP.
2020-08-31 13:44:46 +02:00
Joachim Bauch
116188c3e3
Reload list of proxy URLs on SIGHUP.
2020-08-31 13:07:03 +02:00
Joachim Bauch
c6892dcb2a
Update config parameter name to match other options.
2020-08-28 17:09:57 +02:00
Joachim Bauch
66d860bd79
Add support for fetching proxy tokens from etcd cluster.
2020-08-28 17:09:57 +02:00
Joachim Bauch
ebfd774d40
Add go.etcd.io/etcd v3.4.13
2020-08-28 17:09:56 +02:00
Joachim Bauch
7a50e2da93
Drop support for Golang < 1.10
2020-08-28 17:09:56 +02:00
Joachim Bauch
eeb3d356af
Merge pull request #45 from strukturag/ci-golang-1.15
...
CI: Also test with Go 1.15
2020-08-28 17:09:22 +02:00
Joachim Bauch
a0e2de367a
CI: Also test with Go 1.15
2020-08-28 17:06:18 +02:00
Joachim Bauch
85d6726d59
proxy: Prepare for different token storages.
2020-08-28 10:31:11 +02:00
Joachim Bauch
2d73b97882
Move member definition to get consistent formatting across Go versions.
2020-08-28 09:50:52 +02:00
Joachim Bauch
0dcb9f6b2d
Unregister / remove subscriber if reconnection didn't work.
...
Partial fix from #15 .
2020-08-13 14:51:07 +02:00
Joachim Bauch
beb84b9cad
Merge pull request #41 from strukturag/revert-15-keep-mcu-deferred-processing
...
Revert "Move processing of deferred method to dedicated DeferredExecutor."
2020-08-13 14:43:27 +02:00
Joachim Bauch
dc1bf2bc9b
Revert "Move processing of deferred method to dedicated DeferredExecutor."
2020-08-13 14:40:06 +02:00
Joachim Bauch
238b355e79
Merge pull request #40 from strukturag/geoip-from-file
...
Support loading a GeoIP database from a local file.
2020-08-13 14:12:53 +02:00
Joachim Bauch
5e3164b5a4
Support loading a GeoIP database from a local file.
2020-08-13 14:07:26 +02:00
Joachim Bauch
2734197e8d
CI: Set "MAXMIND_GEOLITE2_LICENSE" variable to enable GeoIP tests.
2020-08-13 14:03:16 +02:00
Joachim Bauch
968913e32d
Merge pull request #15 from strukturag/keep-mcu-deferred-processing
...
Move processing of deferred method to dedicated DeferredExecutor.
2020-08-13 13:22:42 +02:00
Joachim Bauch
015fa3565d
Merge pull request #36 from strukturag/multiple-mcu-support
...
Support connecting to multiple Janus servers
2020-08-13 13:20:28 +02:00