Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Deeplinking media files from external volumes

Deeplinking media files from external volumes

Scheduled Pinned Locked Moved Solved LAMP
volumes
25 Posts 4 Posters 2.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • girishG girish

      @benborges said in Deeplinking media files from external volumes:

      right now the URL field in my sqlite table does not point to anything because in the original context of this database, the path to the domain is defined in the config.yaml file but exactly like for the LAMP container, I'm wondering how I can just say to nocodb the media files are at /media/

      I think I understand what you are saying. You want https://nocodb.osintukraine.com/media/date/3.MP4 to somehow work. So, this won't work currently because it's not possible to override paths of nocodb like we do in the LAMP app. In the LAMP app, since the app is something we control, it's fine to configure paths the way we want. Doing the same for nocodb is going to cause problems at some point. For example, what it nocodb starts serving things in /media from next release. Or maybe it uses that path already for some internal use, who knows.

      So, instead, what do you think of either a) linking these to the LAMP app itself or b) setup a separate LAMP app instance under static.osintukraine.com and make it serve images from there. Nocodb can simple reference this for "static" contents. Would some idea like that work?

      benborgesB Offline
      benborgesB Offline
      benborges
      wrote on last edited by benborges
      #21

      @girish Thanks for taking the time to ponder on this !

      Yes you got me right and I understand why it's not possible in the case of nocodb.

      just FYI, the path nocodb use in the cloudron context to store uploaded files is
      /app/data/nc/uploads/noco/{NameOfTheDatabase}

      f9e7d383-3c20-4693-9060-caf2008b655f-image.png

      Your suggestion to link directly to the LAMP or to a static "mirror" of this is the path I finally went with, it's was the logical step since provided I can link to it, where the media is does not matter much.

      i'm not yet releasing this publicly but it's coming !

      Thanks for the help!

      BenB

      1 Reply Last reply
      2
      • benborgesB Offline
        benborgesB Offline
        benborges
        wrote on last edited by benborges
        #22

        I'm back here and diving into https://forum.cloudron.io/topic/7619/filesystem-mount-inside-container/8?_=1734892531632 and https://forum.cloudron.io/topic/5747/volumes-are-not-working because I added new Hetzner storage boxes and now I'm back to square one :

        permission denied
        

        I can't seem to be able to chown from inside the container to the cloudron or www-data user
        and from the host itself, I can't chown to yellowtent neither 'permission denied'

        my storage mounts are mounted via Cloudron own UI, using SSHFS
        I'm reading all the previous threads but I can't see to find exactly what I did the last time to get the mounts in the LAMP working

        a08dbe3d-d72b-41de-bcf4-d6c39b981cd4-image.png

        from the host

        42bed3af-ef73-4a36-ad6d-21090d29d4d9-image.png

        BenB

        1 Reply Last reply
        0
        • benborgesB Offline
          benborgesB Offline
          benborges
          wrote on last edited by
          #23

          Trying this : https://docs.cloudron.io/volumes/#sharing

          BenB

          1 Reply Last reply
          0
          • benborgesB Offline
            benborgesB Offline
            benborges
            wrote on last edited by benborges
            #24

            OK I have found the culprit, apparently when I added the SSHFS mount I set the home to be /

            [Unit]
            Description=XXXXXX
            
            Requires=network-online.target
            After=network-online.target
            Before=docker.service
            
            
            [Mount]
            What=xxxxx@xxxxxxx.your-storagebox.de:/ <----- Problem
            Where=/mnt/volumes/1cb3536743394406a8db5a6666226f33
            Options=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_XXXXXX.your-storagebox.de,StrictHostKeyChecking=no,reconnect
            Type=fuse.sshfs
            
            [Install]
            WantedBy=multi-user.target
            
            

            so I went to /etc/systemd/system/
            found my mnt-volumes-CLOUDRON_ID
            and compared with a previous working mount

            and the only thing I found was the home

            [Unit]
            Description=XXXXXX
            
            Requires=network-online.target
            After=network-online.target
            Before=docker.service
            
            
            [Mount]
            What=xxxxx@xxxxxxx.your-storagebox.de:/home
            Where=/mnt/volumes/1cb3536743394406a8db5a6666226f33
            Options=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_XXXXXX.your-storagebox.de,StrictHostKeyChecking=no,reconnect
            Type=fuse.sshfs
            
            [Install]
            WantedBy=multi-user.target
            
            

            Now my mounts are working like before !

            BenB

            1 Reply Last reply
            1
            • benborgesB Offline
              benborgesB Offline
              benborges
              wrote on last edited by benborges
              #25

              Hmm I still have permission denied inside the container to read /media/MyMount
              😓

              EDIT

              This time, it's working, for future reference, only thing I did was to set the home directory properly in the systemD service for each mount, remount them and then systemctl restart box or from the UI restart the box, my mounts are now visible inside the containers and I can read from them

              386b79d8-79cb-47db-8687-019194acef53-image.png

              BenB

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search