Похожие чаты

I am trying to do a reverse proxy setup using

nginx (and caddy — doesn't matter which one)

environment: ubuntu 18.4.3 — Docker (docker-compose)
errors: connection reset by peer — Connection refused

when I link nginx/caddy to the container that I want to reverse proxy I get Connection refused

and when I use network_mode:host I get connection reset by peer

doesn't matter if it's nginx or caddy I get the same error.


nginx configurations:

upstream v2ray {
server 127.0.0.1:1080;
}

location /downloadstream {
proxy_pass http://v2ray;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_intercept_errors on;
if ($http_upgrade = "websocket" ) {
proxy_pass http://v2ray;
}
}

Caddyfile:

0.0.0.0:443

browse

log stdout

errors stdout

tls /root/certs/fullchain.pem /root/certs/privkey.pem

proxy /downloadstream 127.0.0.1:1080 {
websocket
header_upstream -Origin
}


something on the host environment must've been causing this. but I have no clue. can someone give me a hint?

2 ответов

19 просмотров

I was struggling with Nginx & Caddy today as well 😅

ss -tulpn

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта