netbird/management/server/http
Misha Bragin 966661fe91
Serve Management gRPC and HTTP on a single 80/443 port (#400)
This PR is a part of an effort to use standard ports (443 or 80) that are usually allowed by default in most of the environments.

Right now Management Service runs the Let'sEncrypt manager on port 443, HTTP API server on port 33071,
and a gRPC server on port 33073. There are three separate listeners.
This PR combines these listeners into one.
With this change, the HTTP and gRPC server runs on either 443 with TLS or 80 without TLS
by default (no --port specified).
Let's Encrypt manager always runs on port 443 if enabled.
The backward compatibility server runs on port 33073 (with TLS or without).
HTTP port 33071 is obsolete and not used anymore.

Newly installed agents will connect to port 443 by default instead of port 33073 if not specified otherwise.
2022-07-29 20:37:09 +02:00
..
api NetBird SSH (#361) 2022-06-23 17:04:53 +02:00
middleware feat(ac): add access control middleware (#321) 2022-05-25 18:26:50 +02:00
groups_test.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
groups.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
handler.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
peers_test.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
peers.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
rules_test.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
rules.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
setupkeys.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
users_test.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
users.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00
util.go Serve Management gRPC and HTTP on a single 80/443 port (#400) 2022-07-29 20:37:09 +02:00