My webserver configuration is:
Internet -> Varnish (piwig.mydomain.com:80) -> Lighttpd (localhost:8081)
i.e. connections from the internet first hit the reverse proxy (Varnish) on port 80, and are then forwarded to the lighttpd webserver backend running on port 8081.
For the most part (browsing images, uploading images), it works fine, but some links (e.g. "Home") direct to the correct domain (piwig.mydomain.com), but the internal port (8081), which is not (and should not be) accessible from the internet.
I have looked in the piwig_config table in the database, and grepped the piwig installation directory, but can't find anywhere to set the site url without the internal port number.
Is there any way to use pwigo behind a reverse proxy like this?