View Single Post
Old 01-22-2021, 09:24 AM   #1
extensive
Junior Member
extensive began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: Kobo
Calibre with nginx help please

Can anyone help with setting up my nginx reverse proxy? I have a few sites running on the same box. I am by no means an expert at nginx, I've just got ideas from the internet and got it to work for emby, radarr, sonarr, and lidarr. I would like to have calibre on the same box and working through nginx. Here is my conf section but I am getting this error.

Quote:
2021/01/22 09:17:51 [error] 17292#3208: *17 auth request unexpected status: 404 while sending to client, client: 192.168.66.1, server: EXTERNALADDRESSREMOVED, request: "GET /calibre HTTP/2.0", host: "EXTERNALADDRESSREMOVED"
Here is my conf file section
Quote:
location /calibre {
auth_request /auth-4;
proxy_pass http://127.0.0.1:7070;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 90;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Script-Name /calibre; # IMPORTANT: path has NO trailing slash
proxy_hide_header 'x-frame-options';
add_header x-frame-options "allowall";
proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
}
extensive is offline   Reply With Quote