Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

cloudreve-railway

Deployment wrapper for Cloudreve on Railway.

FROM cloudreve/cloudreve:latest plus one entrypoint. It exists because three things cannot be expressed as Railway variables:

  1. The bundled aria2 downloader. The published image's entrypoint runs supervisord with an aria2c --enable-rpc --listen-port 6888 --dht-listen-port 6888 unit on every boot, and the app gates the feature on CR_ENABLE_ARIA2 being present rather than on its value — so no variable turns it off. The build removes the unit and the binary; the entrypoint removes the baked variable.
  2. The first administrator. Cloudreve promotes the first account that registers to the admin group. On a public URL that is a race, so the entrypoint registers the admin against a loopback-only listener before the public port is ever opened, then turns off open registration.
  3. The site URL. siteURL is seeded into the database on the first migration only and defaults to http://localhost:5212. The entrypoint reconciles it with RAILWAY_PUBLIC_DOMAIN, and leaves any custom domain alone.

Variables

Variable Default Purpose
CR_ADMIN_EMAIL admin@example.com login of the seeded administrator
CR_ADMIN_PASSWORD generated its password; when unset one is generated, printed once, and written to <volume>/initial_admin_password.txt
CR_SKIP_BOOTSTRAP 0 1 starts the server directly with no first-run setup
CR_BOOTSTRAP_PORT 5399 loopback port used during first-run setup
PORT 5212 public listen port

Everything else is Cloudreve's own CR_CONF_<Section>.<Key> and CR_SETTING_DEFAULT_<key> interface.

Licence

Cloudreve is GPL-3.0. This wrapper adds no application code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages