fix: Correct spelling of 'community' in S3 file paths and remove outdated domains_comunity.txt file
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 6m1s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 6m1s
This commit is contained in:
+3
-3
@@ -132,7 +132,7 @@ app.post('/api/asns', async (req, res) => {
|
|||||||
app.get('/api/domains-new', async (req, res) => {
|
app.get('/api/domains-new', async (req, res) => {
|
||||||
const params = {
|
const params = {
|
||||||
Bucket: BUCKET_NAME,
|
Bucket: BUCKET_NAME,
|
||||||
Key: 'bgp_data/domains_comunity.txt',
|
Key: 'bgp_data/domains_community.txt',
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -162,7 +162,7 @@ app.post('/api/domains-new', async (req, res) => {
|
|||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
Bucket: BUCKET_NAME,
|
Bucket: BUCKET_NAME,
|
||||||
Key: 'bgp_data/domains_comunity.txt',
|
Key: 'bgp_data/domains_community.txt',
|
||||||
Body: fileContent,
|
Body: fileContent,
|
||||||
ContentType: 'text/plain',
|
ContentType: 'text/plain',
|
||||||
};
|
};
|
||||||
@@ -369,7 +369,7 @@ app.get('/api/s3/last-modified', async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const [domainsHead, domainsNewHead, asnsHead, serversHead, filtersHead] = await Promise.all([
|
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.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: 'bgp_data/asns.txt' }).promise(),
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'servers.json' }).promise(),
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'servers.json' }).promise(),
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'filters.json' }).promise()
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'filters.json' }).promise()
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ google.com 101
|
|||||||
facebook.com 102
|
facebook.com 102
|
||||||
```
|
```
|
||||||
|
|
||||||
### domains_comunity.txt
|
### domains_community.txt
|
||||||
Файл с доменами и их community (новый формат):
|
Файл с доменами и их community (новый формат):
|
||||||
```
|
```
|
||||||
example.com 100
|
example.com 100
|
||||||
|
|||||||
Reference in New Issue
Block a user