diff --git a/backend/server.js b/backend/server.js index 16be636..fadce56 100644 --- a/backend/server.js +++ b/backend/server.js @@ -132,7 +132,7 @@ app.post('/api/asns', async (req, res) => { app.get('/api/domains-new', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: 'bgp_data/domains_comunity.txt', + Key: 'bgp_data/domains_community.txt', }; try { @@ -162,7 +162,7 @@ app.post('/api/domains-new', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: 'bgp_data/domains_comunity.txt', + Key: 'bgp_data/domains_community.txt', Body: fileContent, ContentType: 'text/plain', }; @@ -369,7 +369,7 @@ app.get('/api/s3/last-modified', async (req, res) => { try { const [domainsHead, domainsNewHead, asnsHead, serversHead, filtersHead] = await Promise.all([ s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains.txt' }).promise(), - s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains_comunity.txt' }).promise(), + s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains_community.txt' }).promise(), s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/asns.txt' }).promise(), s3.headObject({ Bucket: BUCKET_NAME, Key: 'servers.json' }).promise(), s3.headObject({ Bucket: BUCKET_NAME, Key: 'filters.json' }).promise() diff --git a/example/s3/bgp_data/README.md b/example/s3/bgp_data/README.md index b092d9f..5788d3b 100644 --- a/example/s3/bgp_data/README.md +++ b/example/s3/bgp_data/README.md @@ -12,7 +12,7 @@ google.com 101 facebook.com 102 ``` -### domains_comunity.txt +### domains_community.txt Файл с доменами и их community (новый формат): ``` example.com 100 diff --git a/example/s3/bgp_data/domains_comunity.txt b/example/s3/bgp_data/domains_community.txt similarity index 100% rename from example/s3/bgp_data/domains_comunity.txt rename to example/s3/bgp_data/domains_community.txt