Skip to content

Volmarg/proxy-provider

Repository files navigation

Proxy Provider

This project is a part of: Voltigo

Description

This project provides, and stores the proxy configurations, as well as it saves the calls that were made with given proxies. There is no gui, so the only way to handle proxy entries is via DB - reason is that the project serves as API only.

Proxy handling was fully tested with BrightData proxy, You can find more about it here. Keep in mind that there is even a class prepared to handle their services explicitly: BrightDataService.php

Running the project

  • make sure that mailer is running, You can use already prepared mailer project from here
  • make sure that database container is running, You need to either provide Your own one or create docker-compose with this content
# This should work for all backend projects
services:

  db:
    container_name: voltigo-projects-databases  
    image: mysql:latest
    restart: always
    tty: true    
    environment:
      MYSQL_ROOT_PASSWORD: root
    extra_hosts:
      - "host.docker.internal:host-gateway"      
    volumes:
      - db:/var/lib/mysql   
    ports:
      - 3661:3306

volumes:
  db:
  • go inside the docker directory,
  • call docker-compose -f docker-compose-prod.yaml up -d
  • the project is now reachable:
    • locally under: 127.0.0.1:8202
    • within other voltigo-related containers under: host.docker.internal:8202

BrightData ProxyManager - simple config

The proxy manager is a part of JobSearcher project. In case of deciding to use it, configuration is as simple as that:

In ProxyManager set this:

Internal name does not matter, target country is up to you

In database (table = proxy) set this

Internal id should not matter, the target country is up to You (3-digit iso code)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published