wiki icon indicating copy to clipboard operation
wiki copied to clipboard

I tried to config the wiki.js from nginx and I got some errors

Open DanitRosenberg opened this issue 6 years ago • 4 comments

Here you can see the errors I got

This is the configuration -

location /wiki {
    proxy_set_header    X-Forwarded-Host $host;
    proxy_set_header    X-Forwarded-Server $host;
    proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header    X-Real-IP $remote_addr;
    proxy_pass          http://drptl-knowledge:8080/;
    proxy_http_version  1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header    X-Forwarded-Proto "https";
    proxy_next_upstream error timeout http_502 http_503 http_504;
    proxy_redirect      off;

}

Thanks for ur help!

DanitRosenberg avatar Nov 08 '20 10:11 DanitRosenberg

assuming the ngnix is on same server as the wikijs is installed...this should be local host.. proxy_pass http://drptl-knowledge:8080/; -> proxy_pass http://localhost:8080;

also no trailing /

sattitan19 avatar Nov 08 '20 15:11 sattitan19

The nginx server is another one... the drptl-knowledge server is the wiki server - remote server

DanitRosenberg avatar Nov 09 '20 07:11 DanitRosenberg

as per the documentation / in the end should not be there..https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/ try removing it

sattitan19 avatar Nov 09 '20 07:11 sattitan19

I tried to remove . Unfortunately, I got the same errors...

DanitRosenberg avatar Nov 09 '20 07:11 DanitRosenberg