WriteFreely behind a nginx reverse proxy buttons don't work as expected

Hello,

I’ve just installed WriteFreely and I put it behind a nginx reverse proxy (you can find it here :D). Everything works great.

I just have one problem that I don’t know how to fix. Some of the links on the webpage (like the “Publish“ button) point to localhost:port and that does not work from other computers. I think it should use my domain name, but I don’t know how to do that.

Video showing the issue: https://youtu.be/ItUDSo0SquA

In the installation directory edit the file config.ini. In [app] section, host, replace http://localhost:port with domain name and restart WriteFreely (sudo systemctl restart writefreely).

Ah yep, the hostvalue is meant to be the public-facing domain name for your WriteFreely instance. Glad it works now!

1 Like