mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
NOISSUE - Enhance docker-compose and Makefile configurations (#3153)
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
@@ -417,6 +417,10 @@ services:
|
||||
- http-adapter
|
||||
- ws-adapter
|
||||
- coap-adapter
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
|
||||
clients-db:
|
||||
image: postgres:16.2-alpine
|
||||
|
||||
@@ -5,3 +5,5 @@
|
||||
*grpc-client*
|
||||
*srl
|
||||
*conf
|
||||
client.crt
|
||||
client.key
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ OU_CA = supermq_ca
|
||||
OU_CRT = supermq_crt
|
||||
EA = info@supermq.com
|
||||
CN_CA = SuperMQ_Self_Signed_CA
|
||||
CN_SRV = localhost
|
||||
CLIENT_SECRET = <CLIENTS_SECRET> # e.g. 8f65ed04-0770-4ce4-a291-6d1bf2000f4d
|
||||
CN_SRV ?= localhost
|
||||
CLIENT_SECRET ?= "" # e.g. 8f65ed04-0770-4ce4-a291-6d1bf2000f4d
|
||||
CRT_FILE_NAME = client
|
||||
AUTH_GRPC_SERVER_CONF_FILE_NAME=auth-grpc-server.conf
|
||||
AUTH_GRPC_CLIENT_CONF_FILE_NAME=auth-grpc-client.conf
|
||||
@@ -91,7 +91,7 @@ server_cert:
|
||||
client_cert:
|
||||
# Create supermq server key and CSR.
|
||||
openssl req -new -sha256 -newkey rsa:4096 -nodes -keyout $(CRT_LOCATION)/$(CRT_FILE_NAME).key \
|
||||
-out $(CRT_LOCATION)/$(CRT_FILE_NAME).csr -subj "/CN=$(CLIENTS_SECRET)/O=$(O)/OU=$(OU_CRT)/emailAddress=$(EA)"
|
||||
-out $(CRT_LOCATION)/$(CRT_FILE_NAME).csr -subj "/CN=$(CLIENT_SECRET)/O=$(O)/OU=$(OU_CRT)/emailAddress=$(EA)"
|
||||
|
||||
# Sign client CSR.
|
||||
openssl x509 -req -days 730 -in $(CRT_LOCATION)/$(CRT_FILE_NAME).csr -CA $(CRT_LOCATION)/ca.crt -CAkey $(CRT_LOCATION)/ca.key -CAcreateserial -out $(CRT_LOCATION)/$(CRT_FILE_NAME).crt
|
||||
|
||||
Reference in New Issue
Block a user