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. Feature Requests
  3. surfer suggestions

surfer suggestions

Scheduled Pinned Locked Moved Feature Requests
5 Posts 3 Posters 963 Views 3 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.
    • R Offline
      R Offline
      Robin
      wrote on last edited by
      #1

      Some feedback, based on having tried out surfer (great little app, by the way!)

      • The "App passwords" dropdown for a surfer instance mentions SFTP, which seems a little wrong.
      • It might be useful to mention _webdav in the documentation, as an alternative for interacting with surfer?
      • It would be great to be able to customize the handling of some mimetypes. For example, when uploading a QML file, surfer will serve it up with application/octet-stream, rather than a text type, which makes browsers offer to download it, which is a bit annoying given how they are basically just text.

      Lastly, a small script here for anyone who wants basic "upload this file" functionality but cannot use npm for whatever reason. You are expected to have a file ~/.surfer/auth with two lines (user/pass), and ~/.server/server which contains the bare hostname to upload to. You can use Cloudron's app passwords feature to avoid using your "regular" password, for some added paranoia.

      #!/usr/bin/env bash
      set -euo pipefail
      
      user=$(head -n1 ~/.surfer/auth)
      password=$(tail -n1 ~/.surfer/auth)
      server=$(cat ~/.surfer/server)
      
      # the file to upload...
      FILE=up.sh.txt
      curl -T "$FILE" -u "$user:$password" https://$server/_webdav/
      echo "Uploaded to https://$server/$(basename $FILE)"
      
      R 1 Reply Last reply
      2
      • R Robin

        Some feedback, based on having tried out surfer (great little app, by the way!)

        • The "App passwords" dropdown for a surfer instance mentions SFTP, which seems a little wrong.
        • It might be useful to mention _webdav in the documentation, as an alternative for interacting with surfer?
        • It would be great to be able to customize the handling of some mimetypes. For example, when uploading a QML file, surfer will serve it up with application/octet-stream, rather than a text type, which makes browsers offer to download it, which is a bit annoying given how they are basically just text.

        Lastly, a small script here for anyone who wants basic "upload this file" functionality but cannot use npm for whatever reason. You are expected to have a file ~/.surfer/auth with two lines (user/pass), and ~/.server/server which contains the bare hostname to upload to. You can use Cloudron's app passwords feature to avoid using your "regular" password, for some added paranoia.

        #!/usr/bin/env bash
        set -euo pipefail
        
        user=$(head -n1 ~/.surfer/auth)
        password=$(tail -n1 ~/.surfer/auth)
        server=$(cat ~/.surfer/server)
        
        # the file to upload...
        FILE=up.sh.txt
        curl -T "$FILE" -u "$user:$password" https://$server/_webdav/
        echo "Uploaded to https://$server/$(basename $FILE)"
        
        R Offline
        R Offline
        Robin
        wrote on last edited by
        #2

        A few other small suggestions while I'm thinking of it:

        • It would be nice if the admin UI had the ability to multiselect (and perhaps "select all") files, to delete a bunch of stuff at once.
        • It would be neat if it were possible to write-protect a file to prevent it being overwritten or deleted without removing the write protection
        1 Reply Last reply
        1
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #3

          Has @nebulon seen this?

          Conscious tech

          nebulonN 1 Reply Last reply
          0
          • robiR robi

            Has @nebulon seen this?

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            @robi indeed I have, some like better content type handling and multiselect are in preparation.
            The _webdav point is I think already fixed, as it is mentioned in the settings dialog within surfer.

            Write-protection is going to be harder. Surfer does not even have any database or so to store per-file/folder metadata.

            R 1 Reply Last reply
            0
            • nebulonN nebulon

              @robi indeed I have, some like better content type handling and multiselect are in preparation.
              The _webdav point is I think already fixed, as it is mentioned in the settings dialog within surfer.

              Write-protection is going to be harder. Surfer does not even have any database or so to store per-file/folder metadata.

              R Offline
              R Offline
              Robin
              wrote on last edited by
              #5

              @nebulon My thinking for write protection was actually that it could - literally - use filesystem permissions rather than introducing a database. Check if the file is writable before deleting/writing, and fail if it isn't writable (or offer to override, which will have to chmod +w it)

              1 Reply Last reply
              2
              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