A
A
Arthur2019-11-24 22:35:12
Telegram
Arthur, 2019-11-24 22:35:12

How to replace localhost:4000 with domain.text in Docker? Or how to feed telegram a link like localhost:4000?

Greetings.
I have a Windows PC with Docker for windows installed. There is a project that opens on port 4000.
As part of the same project, you need to send a button with a link to telegrams - on a local network it is a button localhost: 4000 / link
Telegram swears at such links:
TelegramError: 400: Bad Request: wrong HTTP URL
Hence the question:
1. How and what are the best tools to do this so that the address domain.test -> localhost:4000
is proxied on the LAN Link shorteners won't work because the link changes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2019-11-24
@ar2rsoft

Everything turned out to be quite simple.
In hosts we write:
In the cart we pass test.test:4000/link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question