izrik/plantagenet

Site URL

Opened this issue · 0 comments

izrik commented

If blogware is running behind a proxy like nginx (and it should be behind a proxy), and that proxy is configured to serve requests at a different path than root, then the generated url's in the web pages that blogware returns will have to be modified.

  1. Client requests https://example.com/blog/post/example-post-name
  2. Nginx receives request and forwards it to blogware at http://localhost:1177/post/example-post-name
  3. Blogware responds with html. The link to edit the post should be https://example.com/blog/edit/example-post-name, not /edit/example-post-name which is the current default.

This feature should be controlled by the BLOGWARE_SITEURL envvar and the --siteurl command line arg, which are currently unused.