Why Nostr? What is Njump?
2024-12-31 07:33:58
in reply to

nostr_cn_dev on Nostr: vim /etc/nginx/sites-enabled/xxx.conf add : map $http_upgrade $connection_upgrade { ...

vim /etc/nginx/sites-enabled/xxx.conf

add :

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

upstream websocketio {
server 127.0.0.1:8999;
}

server {
listen 80;
server_name relay.xxxx.com ;

location / {
proxy_pass http://websocketio;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
}
}
Author Public Key
npub1l5r02s4udsr28xypsyx7j9lxchf80ha4z6y6269d0da9frtd2nxsvum9jm