(20241212) Had accidentally deleted some files. Recovered now.
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
# INSTRUCTIONS TO RENEW CERTIFICATES
|
||||||
|
**Date:** 2024-09-18
|
||||||
|
|
||||||
|
1. Go to [jcdev.ditscentre.in/jcdev](http://jcdev.ditscentre.in/jcdev/)
|
||||||
|
2. Navigate to the respective folders (e.g., `kafka`, `mongo`, etc.).
|
||||||
|
3. Download and replace the certificates to ensure they have the same names as those already present in the `cred` folder.
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# INSTRUCTIONS TO RENEW CERTIFICATES
|
|
||||||
### **Date:** 2024-09-18
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
This project is the core for all projects to be setup smoothly. The idea is to have this one project where we explicitly
|
|
||||||
point to the credentials to be used for connecting to the database, and then we provide an endpoint from which all other
|
|
||||||
projects can request for their configuration. This way we make config changes in one place on the database and restart
|
|
||||||
ech instance of all the other projects to update them.
|
|
||||||
|
|
||||||
For example, if we want to update the certificates that another microservice must use, we just update the location path
|
|
||||||
of that certificate in the database and restart that microservice. That microservice will ask this one where to read the
|
|
||||||
credentials from.
|
|
||||||
|
|
||||||
Perform the following steps to renew the certificates:
|
|
||||||
1. Go to [jcdev.ditscentre.in/jcdev](http://jcdev.ditscentre.in/jcdev/)
|
|
||||||
2. Navigate to the respective folders (e.g., `kafka`, `mongo`, etc.).
|
|
||||||
3. Download and replace the certificates to ensure they have the same names as those already present in the `cred` folder.
|
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
kbdev.bicree.com
|
jc.ditscentre.in
|
||||||
wtt.ditscentre.in
|
wtt.ditscentre.in
|
||||||
del.ditscentre.in
|
del.ditscentre.in
|
||||||
@@ -92,7 +92,6 @@ if __name__ == "__main__":
|
|||||||
async def main():
|
async def main():
|
||||||
|
|
||||||
# Create an instance of the database connector:
|
# Create an instance of the database connector:
|
||||||
print("Connecting...")
|
|
||||||
my_db = AsyncMongo(
|
my_db = AsyncMongo(
|
||||||
connection_string = constants.MONGO_DATA_CONNECTION_STRING,
|
connection_string = constants.MONGO_DATA_CONNECTION_STRING,
|
||||||
database_name = constants.MONGO_DATA_DATABASE_NAME,
|
database_name = constants.MONGO_DATA_DATABASE_NAME,
|
||||||
@@ -100,7 +99,6 @@ if __name__ == "__main__":
|
|||||||
debug = True
|
debug = True
|
||||||
)
|
)
|
||||||
await my_db.connect()
|
await my_db.connect()
|
||||||
print("Connected!")
|
|
||||||
|
|
||||||
# Get some data to know if things are working well:
|
# Get some data to know if things are working well:
|
||||||
matching_data = await my_db.find_many(
|
matching_data = await my_db.find_many(
|
||||||
|
|||||||
Reference in New Issue
Block a user