Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Coming soon to newspipe: reverse proxy support

I have taken it upon myself to add reverse-proxy with prefix support to my docker image for newspipe.

So far I have written some basic parts such as a config option for specifying the expected prefix. See the commits in both the newspipe and newspipe-docker repos.

What I haven't done yet is update the url_for function to also add the prefix to the generated urls for most links in the app. Once I do that, I'll send a pull request to upstream.

References

Weblinks

  1. Flask application behind a reverse proxy - Wolfblog
  2. How to mount a Flask app under a URL prefix (or really, any WSGI app) - Little Umbrellas
  3. Radicale v3 Documentation

My previous related work

  1. automatically detect X-Forwarded-Prefix
  2. Set the configured prefix with a custom endpoint

Comments