mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
404 on assets in subpath #309
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @gncabrera on GitHub.
Hi,
we've been using transfer.sh through the Dockerfile for a long time behind an Nginx reverse proxy (transfer.mydomain.com). But because of some architecture changes we have to migrate to a subpath of the domain (mydomain.com/transfer).
The problem is that when loading the webpage, all assets are throwing a 404 Not found. This is because the webpage is trying to load the assets with the root path (mydomain.com/styles/main.css).
Is there a way to configure a base path for the assets when running the webapp (preferably with docker) they can be called like mydomain.com/BASEPATH/styles/main.css?
Thank you very much!
@gncabrera commented on GitHub:
Oh, thank you. You're right, I will be tweaking the nginx for a rewrite
@paolafrancesca commented on GitHub:
@gncabrera do you use your
web-pathor the bundled github.com/dutchcoders/transfer.sh-web?You should be able to fix at nginx level with a rewrite rule for the assets checking that the referer is
mydomain.com/transfer. I've some concern on handling this problem in the transfer.sh-web repository.Or you can clone github.com/dutchcoders/transfer.sh-web, change the src for the assets and follow the instruction to use it in your transfer.sh instance