💾 Archived View for gemini.panda-roux.dev › log › entry › 46 captured on 2022-04-28 at 17:18:25. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Posted on Thursday January 20, 2022
For anyone else interested in layer-4 Gemini proxying (with SNI) via NGINX, below is a copy of the config file I'm doing that with.
I'm by no means an expert on NGINX, so any suggestions are welcome.
stream { ### ### Setup ### # connection-limiting limit_conn_zone $binary_remote_addr zone=addr:10m; limit_conn_log_level warn; limit_conn addr 1; # logging log_format basic '$remote_addr $upstream_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$session_time'; access_log syslog:server=unix:/dev/log basic; error_log stderr info; error_log /var/log/nginx/error.log warn; # map SNI -> backend service map $ssl_preread_server_name $name { gemini.panda-roux.dev panda_roux; } ### ### Frontends ### # Gemini server { listen 1965; ssl_preread on; proxy_buffer_size 16k; # pass requests directly to the corresponding Gemini server proxy_pass $name; } ### ### Backends ### # personal gemlog upstream panda_roux { server 127.0.0.1:1994; } }
Take care!
- panda-roux -
next: "Spring Weather in January"