Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SUPPORT] SmartPhoneLover - Sharry

Featured Replies

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 🙂

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

  • Author
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

  • 2 months later...

How we can reduce the docker disk usage after deleting some large files (already uploaded and then deleted from sharry)?

  • 1 month later...

Since version 1.10.0 the container won't start anymore.

docker log gives me

org.flywaydb.core.api.FlywayException: No database found to handle jdbc:mariadb://***.***.***.***:3306/sharrydb

 

When i roll back to 1.9.0 the container runs.

 

 

  • 2 years 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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.