2021-11-22 14:17:10 +03:00
|
|
|
{
|
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2023-03-15 09:39:12 +03:00
|
|
|
{
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"localRoot": "${workspaceFolder}",
|
|
|
|
"name": "Attach to Remote",
|
|
|
|
"port": 9229,
|
|
|
|
"request": "attach",
|
|
|
|
"sourceMaps": true,
|
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
|
|
|
"type": "node"
|
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
{
|
|
|
|
"name": "Python: Embeddings",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "./pods/embeddings/server.py",
|
|
|
|
"args": ["--model", "sentence-transformers/all-MiniLM-L6-v2", "--device", "cpu"],
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"justMyCode": true,
|
|
|
|
"env": {
|
|
|
|
"PYTORCH_ENABLE_MPS_FALLBACK":"1"
|
|
|
|
}
|
|
|
|
},
|
2021-11-22 14:17:10 +03:00
|
|
|
{
|
|
|
|
"name": "Debug server",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["src/__start.ts"],
|
2021-11-22 14:17:10 +03:00
|
|
|
"env": {
|
|
|
|
"ELASTIC_URL": "http://localhost:9200",
|
2021-12-22 12:02:51 +03:00
|
|
|
"MONGO_URL": "mongodb://localhost:27017",
|
|
|
|
"APM_SERVER_URL2": "http://localhost:8200",
|
2022-01-24 12:35:58 +03:00
|
|
|
"METRICS_CONSOLE": "true", // Show metrics in console evert 30 seconds.,
|
|
|
|
"MINIO_ENDPOINT": "localhost",
|
2022-05-23 18:53:33 +03:00
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
2023-01-04 20:58:54 +03:00
|
|
|
"SERVER_SECRET": "secret",
|
|
|
|
"REKONI_URL": "http://localhost:4004",
|
2023-01-31 08:48:40 +03:00
|
|
|
"FRONT_URL": "http://localhost:8080",
|
2023-01-04 20:58:54 +03:00
|
|
|
// "RETRANSLATE_URL": "http://127.0.0.1:4500",
|
|
|
|
//"RETRANSLATE_URL": "https://208.167.249.201",
|
|
|
|
// "RETRANSLATE_TOKEN": ""
|
2021-11-22 14:17:10 +03:00
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2023-01-04 20:58:54 +03:00
|
|
|
"showAsyncStacks": true,
|
2021-11-22 14:17:10 +03:00
|
|
|
"sourceMaps": true,
|
2022-12-05 19:27:49 +03:00
|
|
|
"cwd": "${workspaceRoot}/pods/server",
|
2021-11-22 14:17:10 +03:00
|
|
|
"protocol": "inspector"
|
2021-11-25 14:07:44 +03:00
|
|
|
},
|
2022-07-14 05:45:51 +03:00
|
|
|
{
|
|
|
|
"name": "Debug Account",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["src/__start.ts"],
|
2022-07-14 05:45:51 +03:00
|
|
|
"env": {
|
2023-01-31 12:10:44 +03:00
|
|
|
"MONGO_URL": "mongodb://localhost:27017",
|
2022-07-14 05:45:51 +03:00
|
|
|
"SERVER_SECRET": "secret",
|
2022-11-16 18:03:03 +03:00
|
|
|
"TRANSACTOR_URL": "ws:/localhost:3333",
|
2023-01-31 12:10:44 +03:00
|
|
|
"ACCOUNT_PORT": "3000",
|
|
|
|
"FRONT_URL": "http://localhost:8080",
|
|
|
|
"SES_URL": "http://localhost:8091"
|
2022-07-14 05:45:51 +03:00
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2022-07-14 05:45:51 +03:00
|
|
|
"sourceMaps": true,
|
|
|
|
"cwd": "${workspaceRoot}/pods/account",
|
|
|
|
"protocol": "inspector"
|
|
|
|
},
|
2021-11-25 14:07:44 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Jest tests",
|
|
|
|
"program": "${fileDirname}/../../node_modules/@rushstack/heft/lib/start.js",
|
|
|
|
"cwd": "${fileDirname}/../../",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["--debug", "test", "--clean", "--test-path-pattern", "${file}"],
|
2021-11-25 14:07:44 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"sourceMaps": true,
|
|
|
|
"protocol": "inspector"
|
2021-12-10 12:47:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug generator",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["src/index.ts", "gen-recruit", "ws1", "20"],
|
2021-12-10 12:47:54 +03:00
|
|
|
"env": {
|
2022-05-23 18:53:33 +03:00
|
|
|
"TRANSACTOR_URL": "ws:/localhost:3333",
|
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
|
|
|
"MINIO_ENDPOINT": "localhost"
|
2021-12-10 12:47:54 +03:00
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2021-12-10 12:47:54 +03:00
|
|
|
"sourceMaps": true,
|
|
|
|
"cwd": "${workspaceRoot}/dev/generator",
|
|
|
|
"protocol": "inspector"
|
2022-05-23 18:53:33 +03:00
|
|
|
},
|
2021-12-22 12:02:51 +03:00
|
|
|
{
|
2023-03-15 09:39:12 +03:00
|
|
|
"name": "Debug backup tool",
|
2021-12-22 12:02:51 +03:00
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-03-15 09:39:12 +03:00
|
|
|
"args": ["src/index.ts", "backup", "../../../dump/alex-staff-agency2", "alex-staff-agency"],
|
2021-12-22 12:02:51 +03:00
|
|
|
"env": {
|
2022-05-23 18:53:33 +03:00
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
|
|
|
"MINIO_ENDPOINT": "localhost",
|
|
|
|
"MONGO_URL": "mongodb://localhost:27017",
|
|
|
|
"TRANSACTOR_URL": "ws:/localhost:3333",
|
|
|
|
"TELEGRAM_DATABASE": "telegram-service",
|
|
|
|
"ELASTIC_URL": "http://localhost:9200"
|
2021-12-22 12:02:51 +03:00
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2022-10-20 10:04:46 +03:00
|
|
|
"sourceMaps": true,
|
2023-03-15 09:39:12 +03:00
|
|
|
"cwd": "${workspaceRoot}/dev/tool",
|
|
|
|
"protocol": "inspector"
|
2022-10-20 10:04:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug tool upgrade",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["src/index.ts", "upgrade"],
|
2022-10-20 10:04:46 +03:00
|
|
|
"env": {
|
|
|
|
"SERVER_SECRET": "secret",
|
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
|
|
|
"MINIO_ENDPOINT": "localhost",
|
|
|
|
"MONGO_URL": "mongodb://localhost:27017",
|
|
|
|
"TRANSACTOR_URL": "ws:/localhost:3333",
|
|
|
|
"TELEGRAM_DATABASE": "telegram-service",
|
|
|
|
"ELASTIC_URL": "http://localhost:9200",
|
|
|
|
"REKONI_URL": "http://localhost:4004"
|
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2021-12-22 12:02:51 +03:00
|
|
|
"sourceMaps": true,
|
2022-06-16 06:36:45 +03:00
|
|
|
"cwd": "${workspaceRoot}/dev/tool"
|
2022-11-02 11:50:14 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug Collaborator",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2023-01-24 16:42:47 +03:00
|
|
|
"args": ["src/__start.ts"],
|
2022-11-02 11:50:14 +03:00
|
|
|
"env": {
|
|
|
|
"SECRET": "secret",
|
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
2023-01-24 16:42:47 +03:00
|
|
|
"MINIO_ENDPOINT": "localhost"
|
2022-11-02 11:50:14 +03:00
|
|
|
},
|
2023-01-24 16:42:47 +03:00
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
2022-11-02 11:50:14 +03:00
|
|
|
"sourceMaps": true,
|
|
|
|
"cwd": "${workspaceRoot}/pods/collaborator",
|
|
|
|
"protocol": "inspector"
|
2023-03-15 09:39:12 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug backup",
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"args": ["src/index.ts"],
|
|
|
|
"env": {
|
|
|
|
"ACCOUNTS_URL": "http://localhost:3000",
|
|
|
|
"MINIO_ENDPOINT": "localhost",
|
|
|
|
"MINIO_ACCESS_KEY": "minioadmin",
|
|
|
|
"MINIO_SECRET_KEY": "minioadmin",
|
|
|
|
"SECRET": "secret",
|
|
|
|
"TRANSACTOR_URL": "ws:/localhost:3333",
|
|
|
|
"BUCKET_NAME":"test_backups",
|
|
|
|
"INTERVAL":"30"
|
|
|
|
},
|
|
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
|
|
|
"showAsyncStacks": true,
|
|
|
|
"sourceMaps": true,
|
|
|
|
"cwd": "${workspaceRoot}/pods/backup",
|
|
|
|
"protocol": "inspector"
|
|
|
|
},
|
2021-11-22 14:17:10 +03:00
|
|
|
]
|
2023-01-24 16:42:47 +03:00
|
|
|
}
|