szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.66k stars 167 forks source link

public path not working as expected for reverse proxy #196

Open federatedsingularity opened 1 year ago

federatedsingularity commented 1 year ago

MICROBIN_PUBLIC_PATH (--public-path) is not correctly set for some functionality in microbin when using a subdir path behind a reverse proxy.

If --pulbic-path https://example.com/microbin is set, some paths are still defaulting to the root (https://example.com/), This includes /guide if small question marks clicked and /upload if save or file upload is clicked. Manually going to https://example.com/microbin/guide works fine.

This is using compiled microbin-2.0.4 with FreeBSD ports (amd64). The same proxy configuration worked with microbin 1.2.1

PeterUpfold commented 1 year ago

I have proposed a fix for these issues in #194.