PIN input error at login
Describe the bug Fresh install. I get an error that doesn't let me input the pin. To Reproduce dumbdrop: image: dumbwareio/dumbdrop:latest container_name: dumbdrop restart: unless-stopped ports: # Port changed to 5050 to avoid conflict - 5050:3000 volumes: # Where your uploaded files will land - /volume1/docker/containers/dumbware/dumbdrop/local_uploads:/app/uploads environment: DUMBDROP_TITLE: DumbDrop MAX_FILE_SIZE: 1024 DUMBDROP_PIN: ${DUMBDROP_PIN} AUTO_UPLOAD: false # Tell DumbDrop to use the directory mapped in the volume UPLOAD_DIR: /app/uploads # BASE_URL updated to match the new port BASE_URL: http://localhost:5050/
.env file contents
DUMBASSETS_PIN=x DUMBDROP_PIN=x DUMBPAD_PIN=x DUMBDO_PIN=x DUMBBUDGET_PIN=x DUMBKAN_PIN=x
Expected behavior Input PIN and access application. All other DumbApps allow me to input the pin using the same environment variables. >.<
Screenshots
Desktop (please complete the following information):
- OS: Windows 10, macOS
- Opera, Edge, Safari Tried all to make sure it wasn't the browser.
Are you seeing any logs in the browser log? And just to clarify, are you accessing the app from the localhost you have set in BASE_URL?
Apologies. I was falling asleep and I completely forgot to say that I'm running it on my NAS using docker. I use the NAS IP and port on another machine to access the container. However, I don't think this should be an issue given that your other packages ran fine this way...
That should be fine yeah, are you getting any console logs in the browser?
All the browser shows is the screenshot. I did post the docker logs though.
So another dev reminded me, currently with DumbDrop you have to access it from the BASE_URL currently. This is something I think we'll try to put an update out for as you aren't the first to run into it.
Gotcha! I do remember a few websites with the same error when I tried googling the text on the page. Which is why I asked here for support. Thanks for the help.
Hi @abiteman,
First of all, i really like the project. I installed it today on my NAS. It would be great when this bug will be fixed. I for example want to can access DumbDrop via LAN and over the internet via Cloudflare. Kind regards Stefan
Hey there! just added a new fix here https://github.com/DumbWareio/DumbDrop/pull/64, which should address these type of issues
pull the latest image / changes, deploy, you may need to clear cache and refresh and it should work for localhost, internal ips, and external domains
see notes below for restricting origins as needed:
- new
ALLOWED_ORIGINSenv var- Comma-separated list of allowed origins for CORS
- (default: '*' if empty, replace with your base_url if you want to restrict only to base_url)
- When adding multiple origins, base_url will be included by default and does not need to the list
- ALLOWED_IFRAME_ORIGINS: #DEPRECATED and will be used as ALLOWED_ORIGINS if SET
- ALLOWED_ORIGINS: http://internalip:port,https://subdomain.example.com
hope that helps!