fix nginx config
This commit is contained in:
parent
bc81c8e251
commit
fcca345ba1
@ -2,11 +2,10 @@
|
|||||||
# make sure to set prefix=/nntpchan/ for section frontend in srnd.ini
|
# make sure to set prefix=/nntpchan/ for section frontend in srnd.ini
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
location /nntpchan/ {
|
location /nntpchan/(.*) {
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
rewrite ^/nntpchan/(.*) /$1;
|
proxy_pass http://[::1]:18000/$1;
|
||||||
proxy_pass http://[::1]:18000/;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user