Fix Apache configuration

Built assets are fetched using path like this: `/assets/foo-a1b2c3.js`. Apache failed to serve those, as it was missing disabling the proxy pass for the static assets folder. This commit adds the necessary configuration for properly serving the static assets.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2699>
environments/review-docs-renov-djizp4/deployments/19096
Baudouin Feildel 2024-01-06 14:39:15 +00:00 zatwierdzone przez Georg Krause
rodzic c21bfce9d0
commit d0a997643b
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -94,6 +94,11 @@ Define MEDIA_DIRECTORY_PATH ${FUNKWHALE_ROOT_PATH}/data/media
</Location>
Alias /front ${FUNKWHALE_ROOT_PATH}/front/dist
<Location "/assets">
ProxyPass "!"
</Location>
Alias /assets ${FUNKWHALE_ROOT_PATH}/front/dist/assets
<Location "/media">
ProxyPass "!"
</Location>