Git Product home page Git Product logo

nextcloud-raw's Introduction

Raw โ€” Nextcloud raw file server

Raw simply returns any requested file, so you can link directly to a file itself (i.e. without any of NextCloud's interface around it). This enables you to host static web pages, images or other files, for example to link/embed them elsewhere on the web.

For security and privacy, the content is served with a Content-Security-Policy header. This header instructs browsers to not load any remote content, nor execute any scripts that it may contain (of course, the downside is that your web pages cannot use javascript for interactivity).

Usage

The common usage is to first share a file and enable public access through a link. If the share link is https://my-nextcloud/s/aBc123DeF456xyZ, then this app will provide access to the raw file at https://my-nextcloud/apps/raw/s/aBc123DeF456xyZ. If the share is a folder, the files within it are accessible as e.g. https://my-nextcloud/apps/raw/s/aBc123DeF456xyZ/path/to/file.

A user can also access their own private files. For example, a file named test.html in anansi's Documents folder would be available at https://my-nextcloud/apps/raw/u/anansi/Documents/test.html.

Installation

Clone this repo into your Nextcloud installation's /apps (or /custom_apps) folder, ensuring the folder's name is raw:

git clone https://code.treora.com/gerben/nextcloud-raw raw

Then log into Nextcloud as admin, find and enable it in the list of apps.

This app is currently not published in the Nextcloud app store.

nextcloud-raw's People

Contributors

treora avatar

Stargazers

v3rmine avatar

Watchers

Mike L. avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.