From bc81c8e251ff05117d1341abe1f6cdd8506a23b0 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 3 Oct 2015 10:14:25 -0400 Subject: [PATCH] add example nginx config, probably works --- contrib/configs/nginx/nntpchan | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 contrib/configs/nginx/nntpchan diff --git a/contrib/configs/nginx/nntpchan b/contrib/configs/nginx/nntpchan new file mode 100644 index 0000000..4af45e3 --- /dev/null +++ b/contrib/configs/nginx/nntpchan @@ -0,0 +1,12 @@ +# using srndv2 behind nginx with a prefix +# make sure to set prefix=/nntpchan/ for section frontend in srnd.ini +server { + listen 80; + location /nntpchan/ { + client_max_body_size 50M; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + rewrite ^/nntpchan/(.*) /$1; + proxy_pass http://[::1]:18000/; + } +}