by standardfile

standardfile / ruby-server

[Deprecated] Use instead

427 Stars 56 Forks Last release: Not found GNU Affero General Public License v3.0 207 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Standard File Server, Ruby Implementation

This is a production-ready reference implementation of the Standard File protocol.

A production client is available at

Running your own server

You can run your own Standard File server, and use it with any SF compatible client (like Standard Notes). This allows you to have 100% control of your data. This server implementation is built with Ruby on Rails and can be deployed in minutes.

Getting started


  • Ruby 2.2+
  • Rails 5
  • MySQL 5.6+ database


  1. Clone the project:

    git clone
  2. Create a .env file in the project's root directory. Add environment variables (see Environment variables for full listing):

  3. Initialize project:

    bundle install
    rails db:create db:migrate
  4. Start the server:

    rails s

Deploying to a live server

You can find instructions on deploying an SN server from scratch here:

Deploying a Standard File server with Amazon EC2 and Nginx

Using Docker

To deploy to a live server using Docker and Docker-Compose, see:

Deploying a private Standard File server using Docker

Environment variables


Rails secret key used only in production environment


Rails environment, set it to

on production server.


Database host.


Database port. 3306 is standard.


Database name.


Database username.


Database password.


Licensed under the GNU AGPLv3:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.