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.
- Client requests
https://example.com/blog/post/example-post-name
- Nginx receives request and forwards it to blogware at
http://localhost:1177/post/example-post-name
- 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.