Reverse proxy and tunnels
Like Seerr, Storyrr works at every address it’s reached at: its local network address over http (http://192.168.1.10:6066) and a public HTTPS address (a Cloudflare Tunnel, a reverse proxy) at the same time. Nothing to configure for that.
The application URL (setup wizard, or Settings → General) is only used for links that leave Storyrr: emails, notifications, the Chaptarr webhook URL and link previews. Set it to the address your users open, usually the public one.
What the proxy must pass
Section titled “What the proxy must pass”Storyrr reads the request’s original address from the proxy’s headers:
Host(orX-Forwarded-Host): the address the browser opened;X-Forwarded-Proto:httpswhen the browser used HTTPS. Sign-in cookies are then marked secure.
Sign-in and other changes check that the request comes from the page’s own address, so a proxy that rewrites Host without setting X-Forwarded-Host makes them fail.
Tell Storyrr it is behind a proxy
Section titled “Tell Storyrr it is behind a proxy”Storyrr limits sign-in attempts per visitor address. By default it uses the address of the connection itself, which a visitor can’t forge. Behind a reverse proxy or a tunnel, every visitor then seems to come from the proxy and shares one limit.
If Storyrr is only reached through your proxy or tunnel, turn on Settings → Network → Trust the proxy’s address header: visitors are told apart by the address the proxy reports in X-Forwarded-For.
Leave it off if Storyrr is also opened directly (for example by its local network address): anyone reaching it directly could send that header themselves and get around the limit.
Examples
Section titled “Examples”Cloudflare Tunnel
Section titled “Cloudflare Tunnel”Point the tunnel’s public hostname at Storyrr’s local address (for example http://storyrr:6066). Cloudflare sends the right headers: nothing else to do.
Caddy passes the headers by default:
books.example.com { reverse_proxy storyrr:6066}server { server_name books.example.com; # listen and TLS settings…
location / { proxy_pass http://storyrr:6066; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }}Storyrr is open source, released under the MIT license.