mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
Customizable frontend #303
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 @telatin on GitHub.
I understand that the main website https://transfer.sh will be closing soon, unfortunately.
I tried the Docker container on a VM and it works very well, but it's odd that the homepage is branded "transfer.sh", and gives static examples of commands assuming that domain.
I think the source files for the front end should be provided to update them.
Thanks
@mckaygerhard commented on GitHub:
https://github.com/dutchcoders/transfer.sh-web i think!
@paolafrancesca commented on GitHub:
as @mckaygerhard pointed out https://github.com/dutchcoders/transfer.sh-web is available: you can clone do the changes you want, and then use the new content with
--web-path@mckaygerhard commented on GitHub:
umm the source files are not in the main repository?
@telatin commented on GitHub:
Thanks! I will try that parameter.
Sent with GitHawk
@paolafrancesca commented on GitHub:
@telatin you can already pass the
--web-pathoption to transfer.sh in order to server static template pages. anyway I understand there's no documentation on what you have to pass to the templates (see https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L164-L171 for a list)I was already planning to change all references to
transfer.shin the frontend with the url of the actual domain the service is hosted on.@paolafrancesca commented on GitHub:
@bandicootdancing I see there are already instructions on transfer.sh-web readme how to setup what I've just explained:
obviously
/folderand/folder/distare just example: you can put whatever path you need for your setup and they don't even need to be nested like in the example@paolafrancesca commented on GitHub:
@bandicootdancing transfer.sh-web is a go dependency of transfer.sh. In the first repository there should be full instruction on how to build the frontend with grunt and generate the go bindata depdency. After that you only need to copy the transfer.sh-web directory in the proper vendor position of transfer.sh, if you didn't already worked from there.
If you want to use the
--web-pathoption on a transfer.sh docker container you just need to mount the content of the grunt generated frontend on the container. This mount can come or not from another container, but it is static content and I wouldn't see the reason for putting it in a container. Be aware that you only need thedistdirectory (target of the grunt build) of transfer.sh-web to be mounted, that's the reason why transfer.sh-web has no Dockerfile@bandicootdancing commented on GitHub:
Options with some instructions would be appreciated. I don't see any normal instructions on setting this up without docker. I'm very new to docker so I'm almost lost at the moment with combining the two containers. Can someone write up some instructions on how to customize the transfer.sh-web along with this transfer.sh container? Do they both need to be used together?
I've seen other projects have a build process for the docker container. It'd be awesome to edit the frontend as needed then build if possible.