From bc81c8e251ff05117d1341abe1f6cdd8506a23b0 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 3 Oct 2015 10:14:25 -0400 Subject: [PATCH 1/3] 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/; + } +} From fcca345ba1f4b7457ef8b48184d68a0c30adcb39 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 3 Oct 2015 10:31:32 -0400 Subject: [PATCH 2/3] fix nginx config --- contrib/configs/nginx/nntpchan | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/configs/nginx/nntpchan b/contrib/configs/nginx/nntpchan index 4af45e3..5290e3f 100644 --- a/contrib/configs/nginx/nntpchan +++ b/contrib/configs/nginx/nntpchan @@ -2,11 +2,10 @@ # make sure to set prefix=/nntpchan/ for section frontend in srnd.ini server { listen 80; - location /nntpchan/ { + 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/; + proxy_pass http://[::1]:18000/$1; } } From 8608d222c367bc3cf6cc24c26b6f09366a7c7c23 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 3 Oct 2015 22:07:19 -0400 Subject: [PATCH 3/3] add link to /new/ --- contrib/templates/default/frontpage.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/templates/default/frontpage.mustache b/contrib/templates/default/frontpage.mustache index ad82948..5ff904b 100644 --- a/contrib/templates/default/frontpage.mustache +++ b/contrib/templates/default/frontpage.mustache @@ -20,6 +20,7 @@

View the overboard

Read the FAQ

Join the IRC

+

Create a new board

Fork on github: frontend and core

We've Had {{totalposts}} Posts Since August 01 2015