storj/cmd
Clement Sam 87ea2a4794 cmd/storagenode: make supervisor HTTP Server configurable
The current supervisord condifguration sets up the HTTP server
to listen on a tcp socket which is private i.e. available only
on localhost. This poses a regression where multiple containers
cannot be run if the host network interface is used when docker
container is run with `--network host` option.

This change adds a new env variable `SUPERVISOR_SERVER`, with
potential values `unix | private_port | public_port`, where
`unix` is set as the default value.

By default, the HTTP server is now set to listen on a UNIX
domain socket.
The file path is set to `/etc/supervisor/supervisor.sock`
instead of the /tmp directory since some systems
periodically delete older files in /tmp. If the socket file is
deleted, supervisorctl will be unable to connect to supervisord.

When SUPERVISOR_SERVER is set to `public_port` or `private_port`,
the HTTP server is set to listen on a TCP socket.

Resolves https://github.com/storj/storj/issues/4661

Change-Id: I224836dcae0293bcfe49874f2748be7723944687
2022-05-16 20:06:24 +00:00
..
certificates all: fix error naming 2021-04-29 15:38:21 +03:00
connect-test deps: upgrade storj.io/common 2022-02-16 18:59:19 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity ci: fix lint errors 2021-05-17 13:37:31 +00:00
inspector satellite: remove irreparabledb leftovers from code 2021-06-22 11:26:17 +00:00
internal/wizard cmd/internal/asset: delete unused code 2021-05-20 18:30:19 +03:00
metabase-orphaned-segments cmd,private,satellite: add application_name to metabase connections 2022-02-20 22:29:41 +01:00
metabase-verify cmd,private,satellite: add application_name to metabase connections 2022-02-20 22:29:41 +01:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00
nullify-bad-user-agents cmd/nullify-bad-user-agents: set user_agent to NULL where user_agent = partner_id 2022-03-31 16:57:50 -04:00
satellite satellite/repair/queue: buffer batch insert 2022-05-11 09:02:20 +00:00
storagenode cmd/storagenode: make supervisor HTTP Server configurable 2022-05-16 20:06:24 +00:00
storagenode-updater cmd/storagenode-updater: add should-update cmd 2022-04-12 17:55:54 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim satellite/{mailservice,oidc}: improvements to debugging 2022-05-11 19:59:42 +00:00
uplink uplink, satellite: use bgp hostnames 2022-05-16 18:14:37 +00:00
versioncontrol Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00