DumbDrop icon indicating copy to clipboard operation
DumbDrop copied to clipboard

`BASE_URL` variable not being validated

Open ericgaspar opened this issue 1 year ago • 3 comments

Thank you for your work on these dumb apps. I have packaged the 6 apps to be easily installed with YunoHost.

Describe the bug I am serving DumbDrop thought NGINX proxy I have an issue with the BASE_URL variable not being validated: https://paste.yunohost.org/aqulumigug

I have trier https://mydomain.tld, http://localhost:myport, http://127.0.0.1:myport, I get the same error

Thanks for your help

Desktop (please complete the following information):

  • OS: MacOs
  • Browser : Firefox

Additional context installing with YunoHost script : https://github.com/YunoHost-Apps/dumbdrop_ynh)

ericgaspar avatar Feb 25 '25 11:02 ericgaspar

@ericgaspar i haven't used YunoHost but this looks more like an issue with how YunoHost is setting up the env variables. looking at the .env config for that YunoHost repo it looks like you dont need to include the protocol (https://)

in the meantime - when installing and supplying a domain, i would try putting in your domain without the protocol (https://) like this subdomain.mydomain.tld or mydomain.tld and seeing if that works! (however this does require the domain to be secure/https):

  • https://github.com/YunoHost-Apps/dumbdrop_ynh/blob/bb17cdd7f09434496c97b603026fd8f4de8364b6/conf/.env
  • from the looks of it, it's probably adding the BASE_URL as https://https://mydomain.tld (which is not a valid url)

I would recommend that YunoHost changes their env to remove the string interpolation and so that you can supply a base url with either protocol

gitmotion avatar Feb 25 '25 23:02 gitmotion

Thank you for this @gitmotion !

abiteman avatar Feb 26 '25 02:02 abiteman

@abiteman 👍🏻 thought it might be related to a change i added so took a look in case

gitmotion avatar Feb 26 '25 04:02 gitmotion