mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-18 22:12:40 +00:00
24 lines
No EOL
413 B
Text
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 |