[SUPPORT] SmartPhoneLover - Gokapi


Recommended Posts

gokapi_200x200.png

 

This docker template was created based on an already available docker image


GitHub: https://github.com/Forceu/gokapi
DockerHub: https://hub.docker.com/r/f0rc3/gokapi
Documentation: https://gokapi.readthedocs.io/en/latest/index.html
My Repository: https://github.com/SmartPhoneLover/unraid-docker-templates

 

DESCRIPTION

Gokapi is a lightweight server to share files, which expire after a set amount of downloads or days. It is similar to the discontinued Firefox Send, with the difference that only the admin is allowed to upload files.

 

This enables companies or individuals to share their files very easily and having them removed afterwards, therefore saving disk space and having control over who downloads the file from the server.

 

Identical files will be deduplicated. An API is available to interact with Gokapi. AWS S3 and Backblaze B2 can be used instead of local storage. Customization is very easy with HTML/CSS knowledge.


NOTES

• Default credentials: unraid/unraid (user/pass).

• After building the container, check logs for details about how to log-in.
• To know more about the available variables that you can use, check the documentation.
• If you want to update the container settings (variables) after creation, you will need to edit the config file manually. (only applicable for persistent variables)


VERSION
1.0 (2021-12-11)


If you are going to report a bug or request something to be added/modified, please, take into consideration that I will only be able to apply changes for the work I own only. For example, if I create a docker template for an already existing docker image (not created by me), I won't be able to do more for that image than forward your report or request to the owner of the project.


If you like my work, please consider making a little donation.
- DONATE -
Thank you very much 🙂

Edited by SmartPhoneLover
Link to comment
  • 3 months later...

Love it! Got it up and working in almost no time at all. Question; is there a way to add other users or is the point only to be able to send files out? What if I'd like to send files between family members for example?

 

Edit: I should really stop skim reading... Answer to my question - "It is similar to the discontinued Firefox Send, with the difference that only the admin is allowed to upload files."

 

 

Edited by deano_southafrican
Link to comment

@SmartPhoneLover This works brilliantly after significant testing! Your template in unRAID was super easy to set up, thanks a million! 

 

Just putting this out there incase you or anyone else has or will figure it out... I'm having a real hard time setting this up in Nginx. I'm trying to set it up on my domain under a CNAME on Cloudflare. where I think the issue lies is the fact that it requires a specific subdirectory (ie. /admin or /login). I've tried everything else and just can't seem to get it to work.

Link to comment
On 3/23/2022 at 4:41 AM, deano_southafrican said:

@SmartPhoneLover This works brilliantly after significant testing! Your template in unRAID was super easy to set up, thanks a million! 

 

Just putting this out there incase you or anyone else has or will figure it out... I'm having a real hard time setting this up in Nginx. I'm trying to set it up on my domain under a CNAME on Cloudflare. where I think the issue lies is the fact that it requires a specific subdirectory (ie. /admin or /login). I've tried everything else and just can't seem to get it to work.


During the initial configuration there's a setting for public URL and redirect URL.  For the public put in https://yoursubdomain.domain.whatever and for the redirect put in https://yoursubdomain.domain.whatever/login.  (Obviously replacing that with your correct info)  That also corrects the issue with the WebUI link for the container.  For Nginx there's no need for additional config, just make a simple proxy host with the domain, IP and port and you'll be set with the above corrected.  I had the same issues until looking over the config and realized the redirect was there, even though it says it right in the initial config wizard.

 

Hopefully that makes sense.

Link to comment

Is there anything special to do to increase the file size allowed?  I've tweaked the template adding in the following to my liking.

 

GOKAPI_MAX_FILESIZE set to 51200 (removed yours and added my own)

GOKAPI_MAX_MEMORY_UPLOAD set to 64 (thinking larger files may require more memory but doesn't seem to do anything)

GOKAPI_LENGTH_ID set to 15 (removed yours and added my own, default per the documentation is 15)

 

I've confirmed my settings were carried over to the config but upon adding a 780mb file it sits there for a few minutes then appears to be uploading due to a progress bar finally moving then shows an X over the file.  When you hover over the file it shows the below error.

The logs aren't very informative unfortunately so here I am.  😃

 

Any assistance would be greatly appreciated.

 

gokapi_error.png.8c5b0664aaf6597a35b55c7ed0b47dbd.png

Edited by StirCwazy
Link to comment
  • 1 year later...
On 3/29/2022 at 5:59 AM, StirCwazy said:


During the initial configuration there's a setting for public URL and redirect URL.  For the public put in https://yoursubdomain.domain.whatever and for the redirect put in https://yoursubdomain.domain.whatever/login.  (Obviously replacing that with your correct info)  That also corrects the issue with the WebUI link for the container.  For Nginx there's no need for additional config, just make a simple proxy host with the domain, IP and port and you'll be set with the above corrected.  I had the same issues until looking over the config and realized the redirect was there, even though it says it right in the initial config wizard.

 

Hopefully that makes sense.

I did this exactly as you wrote it, unfortunately I always get a Bad Gateway 502.

 

Anyone have an idea where the error is?

 

IMG_20230410_125400_697.jpg

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.