• 1 Post
  • 44 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle






  • Quickly skimming the readme, it states:

    • OAuth token spoofing: To circumvent rate limits imposed by Reddit, OAuth token spoofing is used to mimick the most common iOS and Android clients. While spoofing both iOS and Android clients was explored, only the Android client was chosen due to content restrictions when using an anonymous iOS client.
    • Token refreshing: The authentication token is refreshed every 24 hours, emulating the behavior of the official Android app.
    • HTTP header mimicking: Efforts are made to send along as many of the official app’s headers as possible to reduce the likelihood of Reddit’s crackdown on Redlib’s requests.





  • ~53 W

    • Server:

      • AMD Ryzen 5 5600G
      • 4x16 GB DDR4 3200 Mhz
      • 256 GB NVMe as boot-disk
      • 2x256 GB Samsung SSDs for VMs
      • 2x2 TB WD Red Plus HDDs
    • Mini PC: Beelink S12 N95

      • 16 GB DDR4
      • 256 GB NVMe
    • 8 port unmanaged TP Link switch

    I would like to expand my storage, however I don’t have any available SATA ports and I believe adding an HBA would increase the idle draw about 8 W. I might just upgrade the SSDs and split the storage between the HDDs and SSDs.






  • I just did another test.

    You should be able to create the directories manually. I cheated by simply cloning the repo and copying them to the bind mount location like so. You can use the bind mount method like you wanted.

    git clone https://github.com/mdshack/shotshare
    cp -r shotshare/storage/* /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data/
    chown 82:82 -R /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data
    


  • This appears to be the exact same problem as https://github.com/mdshack/shotshare/issues/31

    For testing I just spun up a VM with Docker, I tried the same compose file as you. I found I had to use the volume instead of a bind mount for /app/storage.

    This compose file should work.

    version: "3.3"
    services:
      shotshare:
        ports:
          - 2000:80
        environment:
          - HOST=:80
          - ALLOW_REGISTRATION=false
        volumes:
          - shotshare_data:/app/storage
          - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/database.sqlite:/app/database/database.sqlite
          - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/.env:/app/.env
        restart: unless-stopped
        container_name: shotshare
        image: mdshack/shotshare:latest
    volumes:
        shotshare_data:
    networks: {}