
See what is currently available by running stash-box -help.įor example, to run stash locally on port 80 run it like this (OSX / Linux) stash-box -host 127.0.0.1 -port 80. Stash-box provides some command line options. The root user will be regenerated on startup if it does not exist, so a new root user may be created by deleting the root user row from the database and restarting stash-box. These credentials are printed once to stdout and are not logged.
#Stash boxes password#
It will also generate a root user with a random password and an API key. The second time that stash-box is run, stash-box will run the schema migrations to create the required tables. The default value is require.Īfter ensuring the database connection string is correct and the database server is available, the stash-box executable may be rerun. Use sslmode=disable to not use SSL for the database connection. The sslmode parameter is documented in the pq documentation. The schema will be created within the database if it is not already present. If the postgres user is not a superuser, CREATE EXTENSION pg_trgm CREATE EXTENSION pgcrypto needs to be run by a superuser before rerunning stash-box, otherwise you will get a migration error.

The database must be created and available. When stash-box is first run, or when it cannot find a configuration file (defaulting to stash-box-config.yml in the current working directory), then it generates a new configuration file with a default postgres connection string ( It prints a message indicating that the configuration file is generated, and allows you to adjust the default connection string as needed. Stash-box requires access to a postgres database server.
#Stash boxes install#


Note: If you are a Stash user, you do not need to install stash-box. The graphql interface is at host:port/graphql. The graphql playground can be accessed at host:port/playground.
#Stash boxes software#
Installing this software will create a blank stash-box database that you can populate yourself. The submission and editing of metadata is expected to follow the same principle as that of the MusicBrainz database. The intent of stash-box is to provide a collaborative, crowd-sourced database of porn metadata, in the same way as MusicBrainz does for music. Stash-box is Stash App's own OpenSource video indexing and Perceptual Hashing MetaData API server for porn.
