Skip to main content

Dropbox-like file server with modern web interface

Project description

Cista Web Storage

Cista takes its name from the ancient cistae, metal containers used by Greeks and Egyptians to safeguard valuable items. This modern application provides a browser interface for secure and accessible file storage, echoing the trust and reliability of its historical namesake.

This is a cutting-edge file and document server designed for speed, efficiency, and unparalleled ease of use. Experience lightning-fast browsing, thanks to the file list maintained directly in your browser and updated from server filesystem events, coupled with our highly optimized code. Fully keyboard-navigable and with a responsive layout, Cista flawlessly adapts to your devices, providing a seamless experience wherever you are. Our powerful instant search means you're always just a few keystrokes away from finding exactly what you need. Press 1/2/3 to switch ordering, navigate with all four arrow keys (+Shift to select). Or click your way around on breadcrumbs that remember where you were.

The Cista project started as an inevitable remake of Droppy which we used and loved despite its numerous bugs. Cista Storage stands out in handling even the most exotic filenames, ensuring a smooth experience where others falter.

All of this is wrapped in an intuitive interface with automatic light and dark themes, making Cista Storage the ideal choice for anyone seeking a reliable, versatile, and quick file storage solution. Quickly setup your own Cista where your files are just a click away, safe, and always accessible.

Experience Cista by visiting Cista Demo for a test run and perhaps upload something...

Getting Started

Installation

To install the cista application, use:

pip install cista

Note: Some Linux distributions might need --break-system-packages to install Python packages, which are safely installed in the user's home folder. As an alternative to avoid installation, run it with command pipx run cista

Running the Server

Create an account: (or run a public server without authentication)

cista --user yourname --privileged

Serve your files at http://localhost:8000:

cista -l :8000 /path/to/files

The server remembers its settings in the config folder (default ~/.local/share/cista/), including the listen port and directory, for future runs without arguments.

Internet Access

To use your own TLS certificates, place them in the config folder and run:

cista -l cista.example.com

Most admins instead find the Caddy web server convenient for its auto TLS certificates and all. A proxy also allows running multiple web services or Cista instances on the same IP address but different (sub)domains.

/etc/caddy/Caddyfile:

cista.example.com {
    reverse_proxy :8000
}

Development setup

For rapid development, we use the Vite development server for the Vue frontend, while running the backend on port 8000 that Vite proxies backend requests to. Each server live reloads whenever its code or configuration are modified.

cd frontend
npm install
npm run dev

Concurrently, start the backend on another terminal:

hatch shell
pip install -e '.[dev]'
cista --dev -l :8000 /path/to/files

We use hatch shell for installing on a virtual environment, to avoid disturbing the rest of the system with our hacking.

Vue is used to build files in cista/wwwroot, included prebuilt in the Python package. Running hatch build builds the frontend and creates a NodeJS-independent Python package.

System Deployment

This setup allows easy addition of storages, each with its own domain, configuration, and files.

Assuming a restricted user account storage for serving files and that cista is installed system-wide or on this account (check with sudo -u storage -s). Alternatively, use pipx run cista or hatch run cista as the ExecStart command.

Create /etc/systemd/system/cista@.service:

[Unit]
Description=Cista storage %i

[Service]
User=storage
ExecStart=cista -c /srv/cista/%i -l /srv/cista/%i/socket /media/storage/%i
Restart=always

[Install]
WantedBy=multi-user.target

This setup supports multiple storages, each under /media/storage/<domain> for files and /srv/cista/<domain>/ for configuration. UNIX sockets are used instead of numeric ports for convenience.

systemctl daemon-reload
systemctl enable --now cista@foo.example.com
systemctl enable --now cista@bar.example.com

Public exposure is easiest using the Caddy web server.

/etc/caddy/Caddyfile:

foo.example.com, bar.example.com {
    reverse_proxy unix//srv/cista/{host}/socket
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cista-0.7.2.tar.gz (126.8 kB view details)

Uploaded Source

Built Distribution

cista-0.7.2-py3-none-any.whl (153.4 kB view details)

Uploaded Python 3

File details

Details for the file cista-0.7.2.tar.gz.

File metadata

  • Download URL: cista-0.7.2.tar.gz
  • Upload date:
  • Size: 126.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for cista-0.7.2.tar.gz
Algorithm Hash digest
SHA256 60d9d316a8658df27cb7595966d832be2c16d1b766862df5264f33ee96db871f
MD5 8f27bf154121be426d5a22390ff4e99f
BLAKE2b-256 3c00730ab5191e8e37d7f4f4cfae1fe94594925466503f333c8412d4cf2b1399

See more details on using hashes here.

File details

Details for the file cista-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: cista-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 153.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for cista-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f81a3e1869b1befd6628a698ac1c124595469c504a78b22b89b019e563e1e30
MD5 c3dd10464cd5abc140876bcb53dced7d
BLAKE2b-256 5b7d85e5fcd16e81f2f5c039664b7e2722ebd2b8a5bd47eadc899b2a81ce8015

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page