Setup routing for image and audio assets based on environment variables #107
Reference in New Issue
Block a user
No description provided.
Delete Branch "35-make-asset-paths-configurable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR resolves #35.
@clbertolini Can you add these environment variables in
example.env
and Docker compose script?Also: Remove the TODO on line 52 in
songdata.rs
:Did some more investigation into this and I made a quick change, hope you don't mind. I initially misled you by telling you to put stuff in /site by default. This is all generated at compile-time, and includes the favicon and placeholder image. If we mount on top of it, those assets won't be accessible. If the first two rules (which you added) don't match a URI looking for some asset, the next route will look in the
site
directory and find those assets (favicon/placeholder).The Docker compose environment variables reflect the default internal values of these variables, both in
assets
relative to the working directory, which in the Docker build is/
.Eventually (#116) the placeholder should be built directly in.