Compare commits

..

No commits in common. '26cd395924d1801a6093cbed6b50593bbcedafcf' and '8ab71b3dd6b5cd2b58d7d872f6049c20f51b0fc9' have entirely different histories.

  1. 4
      docker-compose.yml
  2. 1
      searching-front/services/domain-watcher.ts
  3. 2
      searching-front/services/helpers.ts
  4. 10
      searching-front/services/main.ts

4
docker-compose.yml

@ -19,8 +19,8 @@ services:
# - 9200:9200
influxdb:
image: influxdb:2.4-alpine
ports:
- '8086:8086'
# ports:
# - '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
env_file: ./searching-front/.env.local

1
searching-front/services/domain-watcher.ts

@ -75,7 +75,6 @@ const fetchTonSite = async (url: string) => {
const urlToFetch = `http://${url}/`
const response = await axios.get(urlToFetch, {
proxy: getTonProxy(),
timeout: 30000
})
if (!response.data) {
console.log("Error fetch")

2
searching-front/services/helpers.ts

@ -1,4 +1,4 @@
export const getTonProxy = () => ({
host: process.env.TON_PROXY_DOMAIN || "in3.ton.org",
host: "62.84.115.133",
port: 8080,
})

10
searching-front/services/main.ts

@ -10,11 +10,11 @@ const run = async()=>{
console.time('watcher')
await domainWatcher();
console.timeEnd('watcher')
influx()
console.log('Start parser');
console.time('watcher');
await parser();
console.timeEnd('watcher');
// influx()
// console.log('Start parser');
// console.time('watcher');
// await parser();
// console.timeEnd('watcher');
}

Loading…
Cancel
Save