Tietokilta / laskugeneraattori

MIT License
1 stars 2 forks source link

fix: allow a wider range of filenames #25

Closed lajp closed 3 months ago

lajp commented 3 months ago

This PR improves on filename matching in order to e.g. render .jpeg files as parts of the pdf. Additionally it disallows unsupported filenames entirely, returing an error if encountered.

This includes the current progress of #23 but is to be merged beforehand in order to get the hotter fixes in ASAP

lajp commented 3 months ago

This requires the addition of the env variable ALLOWED_ORIGINS=http://localhost:3000,https://tietokilta.fi and the EXPOSE env var is changed to BIND_ADDR=0.0.0.0