[SUPPORT] SmartPhoneLover - Sharry


Recommended Posts

sharry.png

 

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


GitHub: https://github.com/eikek/sharry
DockerHub: https://hub.docker.com/r/eikek0/sharry
Documentation: https://eikek.github.io/sharry/
My Repository: https://github.com/SmartPhoneLover/unraid-docker-templates


DESCRIPTION

Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is: upload files and get a url back that can then be shared.


How it works?

Authenticated users → others

Authenticated users can upload their files on a web site together with an optional password and a time period. The time period defines how long the file is available for download. Then a public URL is generated that can be shared, e.g. via email.


Others → Authenticated users

Each registered user can maintain alias pages. An alias page is behind a “hard-to-guess” URL (just like the download page) and allows everyone to upload files to the corresponding user. The form does not allow to specify a password or validation period, but a description can be given. The user belonging to the alias can be notified via email. Alias pages can be disabled or deleted any time.


NOTES

• Before building the container, you have to create the 'sharry.conf' file, and place in the directory that is mapped within the template (Config File). (click here to access the file content)
• If you don't want to use an external database (PostgreSQL, MariaDB/MySQL), you can use H2. But, you will need to configure the template and 'sharry.conf' file accordingly. (check documentation for more info)

 


VERSION
1.0 (2021-12-16)


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 🙂

  • Thanks 1
Link to comment

I try without DB via H2 but not working

 

Exception in thread "main" pureconfig.error.ConfigReaderException: Cannot convert configuration to a sharry.restserver.Config. Failures are:
- (/opt/sharry.conf) /opt/sharry.conf: java.io.FileNotFoundException: /opt/sharry.conf (Is a directory).

 

It's right that docker install create a directory named sharry.conf into '/mnt/user/appdata/sharry/' ???

 

I crop sharry.conf from GITHUB into sharry.conf DIR:

 

/mnt/user/appdata/sharry/sharry.conf/sharry.conf

 

---------------------------------------------------------------------------------------

 

sharry.restserver {

  base-url = "http://localhost:9595"

  bind {
    address = "0.0.0.0"
    port = 9595
  }

  backend {
    auth {
      fixed.enabled = true ## enabled admin:admin access
    }

    jdbc {
      url = "jdbc:h2://\"${java.io.tmpdir}\"/sharry-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE"
      user = "dbuser"
      password = "dbpass"
    }

    signup {
      mode = "open"
      invite-time = "14 days"
      invite-password = "generate-invite"
    }
  }

}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Thx

Link to comment
29 minutes ago, utentep2p said:

I try without DB via H2 but not working

 

Exception in thread "main" pureconfig.error.ConfigReaderException: Cannot convert configuration to a sharry.restserver.Config. Failures are:
- (/opt/sharry.conf) /opt/sharry.conf: java.io.FileNotFoundException: /opt/sharry.conf (Is a directory).

 

It's right that docker install create a directory named sharry.conf into '/mnt/user/appdata/sharry/' ???

 

I crop sharry.conf from GITHUB into sharry.conf DIR:

 

/mnt/user/appdata/sharry/sharry.conf/sharry.conf

 

Did you leave unRAID to create the corresponding directories under '/appdata' when creating the container? Or you have created them before creating it?

Also, did you adapted the 'sharry.conf' file to work with H2?

 

By the other hand, the directory tree should be: '/mnt/user/appdata/sharry', not '/mnt/user/appdata/sharry/sharry.conf'. Then, inside '/.../appdata/sharry' place the 'sharry.conf' file.

 

The Java Exception error from above tells that that it could not read the corresponding file, as the place where the file is located was not correct.

 

Please, try the following:

1. Delete 'sharry.config' (directory) from inside '/.../appdata/sharry'.

2. Create the 'sharry.conf' file somewhere, with the following content:

sharry.restserver {

  base-url = "http://localhost:9090"

  bind {
    address = "0.0.0.0"
    port = 9090
  }

  backend {
    auth {
      fixed.enabled = true ## enabled admin:admin access
    }

    jdbc {
      url = "jdbc:h2://"${java.io.tmpdir}"/sharry-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE"
      user = "sa"
      password = ""
    }

    signup {
      mode = "open"
      invite-time = "14 days"
      invite-password = "generate-invite"
    }
  }

}

3. Place the file previously created inside '/.../appdata/sharry'.

4. Start building the container.

 

Notes: Try not to change the 9090 port from inside the file. Do it within the docker template instead. Just to try if it works well at first.

Edited by SmartPhoneLover
Link to comment
  • 2 months later...
  • 1 month later...

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.