[docker] rldp-http-proxy

F_F

Moderator
Команда форума
Сообщения
27
Реакции
20
На github'е появилась инструкция по запуску rldp-http-proxy внутри docker контейнера, автор akme: https://github.com/akme/rldp-http-proxy-docker

Подготовка хоста:
Bash:
> apt update && apt install -y docker docker-compose
Загрузка docker образа и первый запуск:
Bash:
> docker run -ti it4addict/rldp-http-proxy -h

Unable to find image 'it4addict/rldp-http-proxy:latest' locally
latest: Pulling from it4addict/rldp-http-proxy
5667fdb72017: Pull complete
d83811f270d5: Pull complete
ee671aafb583: Pull complete
7fc152dfb3a6: Pull complete
756ffbfe8282: Pull complete
6a80494baff1: Pull complete
5b3d8b1536ba: Pull complete
Digest: sha256:355985e553aeb33adf654dae6dff9ccdb4143564c9e069791e03fbe9c3bfdb98
Status: Downloaded newer image for it4addict/rldp-http-proxy:latest

A simple rldp-to-http and http-to-rldp proxy for running and accessing ton sites
Example:
        rldp-http-proxy -p 8080 -c 3333 -C ton-global.config.json       Runs a local HTTP->RLDP proxy that accepts HTTP proxy queries at localhost:8080
Example:
        rldp-http-proxy -a <global-ip>:3333 -L example.ton -C ton-global.config.json    Runs a local RLDP->HTTP proxy on UDP port <global-ip>:3333 that forwards all queries for http://example.ton to HTTP server at localhost:80

-v|--verbosity<arg>     set verbosity level
-h|--help       prints a help message
-p|--port<arg>  sets http listening port
-a|--address<arg>       local <ip>:<port> to use for adnl queries
-c|--client-port<arg>   local <port> to use for client adnl queries
-C|--global-config<arg> global TON configuration file
-L|--local<arg> http hostname that will be proxied to http server at localhost:80
-R|--remote<arg>        <hostname>@<ip>:<port>, indicates a http hostname that will be proxied to remote http server at <ip>:<port>
-d|--daemonize  set SIGHUP
-l|--logname<arg>       log to file
Запуск в режиме прокси входа (для получения доступа к сайтам *.ton):
Bash:
> docker run --publish 8000:8080 --detach -ti it4addict/rldp-http-proxy -p 8080 -c 3333 -C /usr/local/bin/ton-global.config.json
 
Сверху