gemlog/public/en/tcp-streaming-over-nginx.gmi
2025-09-11 12:43:12 +03:00

24 lines
No EOL
413 B
Text

# TCP streaming over Nginx
Solution useful for all TCP-based protocols like
* Gopher
* Gemini
* Spartan
* NEX
* NPS
Last one does not require TLS, where configuration much simpler
``` /etc/nginx/nginx.conf
stream {
server {
listen 1915;
proxy_pass 127.0.0.1:1915;
}
}
```
For encrypted connections, follow documentation
=> https://nginx.org/en/docs/stream/ngx_stream_core_module.html