Skip to content

Commit

Permalink
rename SMQ_CLIENTS_AUTH_GRPC_ to SMQ_CLIENTS_GRPC_
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <[email protected]>
  • Loading branch information
JeffMboya committed Feb 19, 2025
1 parent 72c762f commit dc9a44c
Show file tree
Hide file tree
Showing 15 changed files with 220 additions and 220 deletions.
68 changes: 34 additions & 34 deletions clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@ The service is configured using the environment variables presented in the
following table. Note that any unset variables will be replaced with their
default values.

| Variable | Description | Default |
| --------------------------------- | ----------------------------------------------------------------------- | ------------------------------ |
| SMQ_CLIENTS_LOG_LEVEL | Log level for Clients (debug, info, warn, error) | info |
| SMQ_CLIENTS_HTTP_HOST | Clients service HTTP host | localhost |
| SMQ_CLIENTS_HTTP_PORT | Clients service HTTP port | 9000 |
| SMQ_CLIENTS_SERVER_CERT | Path to the PEM encoded server certificate file | "" |
| SMQ_CLIENTS_SERVER_KEY | Path to the PEM encoded server key file | "" |
| SMQ_CLIENTS_AUTH_GRPC_HOST | Clients service gRPC host | localhost |
| SMQ_CLIENTS_AUTH_GRPC_PORT | Clients service gRPC port | 7000 |
| SMQ_CLIENTS_AUTH_GRPC_SERVER_CERT | Path to the PEM encoded server certificate file | "" |
| SMQ_CLIENTS_AUTH_GRPC_SERVER_KEY | Path to the PEM encoded server key file | "" |
| SMQ_CLIENTS_DB_HOST | Database host address | localhost |
| SMQ_CLIENTS_DB_PORT | Database host port | 5432 |
| SMQ_CLIENTS_DB_USER | Database user | supermq |
| SMQ_CLIENTS_DB_PASS | Database password | supermq |
| SMQ_CLIENTS_DB_NAME | Name of the database used by the service | clients |
| SMQ_CLIENTS_DB_SSL_MODE | Database connection SSL mode (disable, require, verify-ca, verify-full) | disable |
| SMQ_CLIENTS_DB_SSL_CERT | Path to the PEM encoded certificate file | "" |
| SMQ_CLIENTS_DB_SSL_KEY | Path to the PEM encoded key file | "" |
| SMQ_CLIENTS_DB_SSL_ROOT_CERT | Path to the PEM encoded root certificate file | "" |
| SMQ_CLIENTS_CACHE_URL | Cache database URL | <redis://localhost:6379/0> |
| SMQ_CLIENTS_CACHE_KEY_DURATION | Cache key duration in seconds | 3600 |
| SMQ_CLIENTS_ES_URL | Event store URL | <localhost:6379> |
| SMQ_CLIENTS_ES_PASS | Event store password | "" |
| SMQ_CLIENTS_ES_DB | Event store instance name | 0 |
| SMQ_CLIENTS_STANDALONE_ID | User ID for standalone mode (no gRPC communication with Auth) | "" |
| SMQ_CLIENTS_STANDALONE_TOKEN | User token for standalone mode that should be passed in auth header | "" |
| SMQ_JAEGER_URL | Jaeger server URL | <http://jaeger:4318/v1/traces> |
| SMQ_AUTH_GRPC_URL | Auth service gRPC URL | localhost:7001 |
| SMQ_AUTH_GRPC_TIMEOUT | Auth service gRPC request timeout in seconds | 1s |
| SMQ_AUTH_GRPC_CLIENT_TLS | Enable TLS for gRPC client | false |
| SMQ_AUTH_GRPC_CA_CERT | Path to the CA certificate file | "" |
| SMQ_SEND_TELEMETRY | Send telemetry to supermq call home server. | true |
| Clients_INSTANCE_ID | Clients instance ID | "" |
| Variable | Description | Default |
| ------------------------------ | ----------------------------------------------------------------------- | ------------------------------ |
| SMQ_CLIENTS_LOG_LEVEL | Log level for Clients (debug, info, warn, error) | info |
| SMQ_CLIENTS_HTTP_HOST | Clients service HTTP host | localhost |
| SMQ_CLIENTS_HTTP_PORT | Clients service HTTP port | 9000 |
| SMQ_CLIENTS_SERVER_CERT | Path to the PEM encoded server certificate file | "" |
| SMQ_CLIENTS_SERVER_KEY | Path to the PEM encoded server key file | "" |
| SMQ_CLIENTS_GRPC_HOST | Clients service gRPC host | localhost |
| SMQ_CLIENTS_GRPC_PORT | Clients service gRPC port | 7000 |
| SMQ_CLIENTS_GRPC_SERVER_CERT | Path to the PEM encoded server certificate file | "" |
| SMQ_CLIENTS_GRPC_SERVER_KEY | Path to the PEM encoded server key file | "" |
| SMQ_CLIENTS_DB_HOST | Database host address | localhost |
| SMQ_CLIENTS_DB_PORT | Database host port | 5432 |
| SMQ_CLIENTS_DB_USER | Database user | supermq |
| SMQ_CLIENTS_DB_PASS | Database password | supermq |
| SMQ_CLIENTS_DB_NAME | Name of the database used by the service | clients |
| SMQ_CLIENTS_DB_SSL_MODE | Database connection SSL mode (disable, require, verify-ca, verify-full) | disable |
| SMQ_CLIENTS_DB_SSL_CERT | Path to the PEM encoded certificate file | "" |
| SMQ_CLIENTS_DB_SSL_KEY | Path to the PEM encoded key file | "" |
| SMQ_CLIENTS_DB_SSL_ROOT_CERT | Path to the PEM encoded root certificate file | "" |
| SMQ_CLIENTS_CACHE_URL | Cache database URL | <redis://localhost:6379/0> |
| SMQ_CLIENTS_CACHE_KEY_DURATION | Cache key duration in seconds | 3600 |
| SMQ_CLIENTS_ES_URL | Event store URL | <localhost:6379> |
| SMQ_CLIENTS_ES_PASS | Event store password | "" |
| SMQ_CLIENTS_ES_DB | Event store instance name | 0 |
| SMQ_CLIENTS_STANDALONE_ID | User ID for standalone mode (no gRPC communication with Auth) | "" |
| SMQ_CLIENTS_STANDALONE_TOKEN | User token for standalone mode that should be passed in auth header | "" |
| SMQ_JAEGER_URL | Jaeger server URL | <http://jaeger:4318/v1/traces> |
| SMQ_AUTH_GRPC_URL | Auth service gRPC URL | localhost:7001 |
| SMQ_AUTH_GRPC_TIMEOUT | Auth service gRPC request timeout in seconds | 1s |
| SMQ_AUTH_GRPC_CLIENT_TLS | Enable TLS for gRPC client | false |
| SMQ_AUTH_GRPC_CA_CERT | Path to the CA certificate file | "" |
| SMQ_SEND_TELEMETRY | Send telemetry to supermq call home server. | true |
| Clients_INSTANCE_ID | Clients instance ID | "" |

**Note** that if you want `clients` service to have only one user locally, you should use `CLIENTS_STANDALONE` env vars. By specifying these, you don't need `auth` service in your deployment for users' authorization.

Expand Down
2 changes: 1 addition & 1 deletion cmd/channels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const (
envPrefixHTTP = "SMQ_CHANNELS_HTTP_"
envPrefixGRPC = "SMQ_CHANNELS_GRPC_"
envPrefixAuth = "SMQ_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
envPrefixGroups = "SMQ_GROUPS_GRPC_"
envPrefixDomains = "SMQ_DOMAINS_GRPC_"
defDB = "channels"
Expand Down
2 changes: 1 addition & 1 deletion cmd/clients/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const (
svcName = "clients"
envPrefixDB = "SMQ_CLIENTS_DB_"
envPrefixHTTP = "SMQ_CLIENTS_HTTP_"
envPrefixGRPC = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixGRPC = "SMQ_CLIENTS_GRPC_"
envPrefixAuth = "SMQ_AUTH_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
envPrefixGroups = "SMQ_GROUPS_GRPC_"
Expand Down
2 changes: 1 addition & 1 deletion cmd/coap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
svcName = "coap_adapter"
envPrefix = "SMQ_COAP_ADAPTER_"
envPrefixHTTP = "SMQ_COAP_ADAPTER_HTTP_"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
defSvcHTTPPort = "5683"
defSvcCoAPPort = "5683"
Expand Down
2 changes: 1 addition & 1 deletion cmd/groups/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const (
envPrefixAuth = "SMQ_AUTH_GRPC_"
envPrefixDomains = "SMQ_DOMAINS_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
defDB = "groups"
defSvcHTTPPort = "9004"
defSvcgRPCPort = "7004"
Expand Down
2 changes: 1 addition & 1 deletion cmd/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
const (
svcName = "http_adapter"
envPrefix = "SMQ_HTTP_ADAPTER_"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
envPrefixAuth = "SMQ_AUTH_GRPC_"
defSvcHTTPPort = "80"
Expand Down
2 changes: 1 addition & 1 deletion cmd/mqtt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (

const (
svcName = "mqtt"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
wsPathPrefix = "/mqtt"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/ws/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
const (
svcName = "ws-adapter"
envPrefixHTTP = "SMQ_WS_ADAPTER_HTTP_"
envPrefixClients = "SMQ_CLIENTS_AUTH_GRPC_"
envPrefixClients = "SMQ_CLIENTS_GRPC_"
envPrefixChannels = "SMQ_CHANNELS_GRPC_"
envPrefixAuth = "SMQ_AUTH_GRPC_"
defSvcHTTPPort = "8190"
Expand Down
Loading

0 comments on commit dc9a44c

Please sign in to comment.