diff --git a/.envexample b/.envexample new file mode 100644 index 0000000..1a2d6df --- /dev/null +++ b/.envexample @@ -0,0 +1,41 @@ +#Nestjs +NESTJS_ENDPOINT=backend +NESTJS_PORT=3000 +VITE_NESTJS_ENDPOINT=localhost +#or VITE_NESTJS_ENDPOINT= backend +VITE_NESTJS_PORT=3000 + +#Postgresql +DB_HOST=localhost +# localhost is for nest js npm run start:dev +# postgres is for docker container +DB_PORT=5432 +DB_USERNAME=postgres +DB_PASSWORD=0927 +DB_DATABASE=postgres + +ACCESS_TOKEN_EXPIRATION=60s +JWT_SECRET_KEY=secretKey + +#minio +MINIO_ENDPOINT=192.168.100.5 +MINIO_PORT=9010 +MINIO_ADDRESS=192.168.100.5:9010 +MINIO_USE_SSL=false +MINIO_IMAGE_BUCKET=baseimages +MINIO_QUERY_BUCKET=xsearchimgs +MINIO_ROOT_USER=admin +MINIO_ROOT_PASSWORD=xsearchdbs +MINIO_ACCESS_KEY=user +MINIO_SECRET_KEY=q1w2e3r4 + +#milvus +MILVUS_HOST=192.168.100.5 +MILVUS_PORT=19530 + +#flask +FLASK_HOST=0.0.0.0 +FLASK_PORT=5000 + +#server +SERVER_ADDRESS=192.168.100.5 \ No newline at end of file diff --git a/backend/.envexample b/backend/.envexample new file mode 100644 index 0000000..e7e7817 --- /dev/null +++ b/backend/.envexample @@ -0,0 +1,34 @@ +DB_HOST=localhost +# localhost is for nest js npm run start:dev +# postgres is for docker container +DB_PORT=5432 +DB_USERNAME=postgres +DB_PASSWORD=0927 +DB_DATABASE=postgres + +ACCESS_TOKEN_EXPIRATION=60s +JWT_SECRET_KEY=secretKey + +flaskHOST= 127.0.0.1 +flaskPORT= 5000 +milvusHOST= 127.0.0.1 +milvusPORT= 19530 + +server = 192.168.1000.5 + +MINIO_ENDPOINT='localhost' +MINIO_PORT=9000 + +MINIO_ACCESS_KEY=admin +MINIO_SECRET_KEY=sodeimmcd +MINIO_USE_SSL=false +MINIO_BUCKET_NAME=xsearchimgs +MINIO_ROOT_USER=admin +MINIO_ROOT_PASSWORD=sodeimmcd + + +MILVUS_COLLECTION_NAME= +MILVUS_HOST= +MILVUS_PORT= + +MILVUS_API_URL= http://127.0.0.1:5000/search \ No newline at end of file