Seroup

August 6, 2024 ยท View on GitHub

Seroup is a CLI management tool for sero servers, allowing you to easily upload and manage site on this server. The last version of this tool is guaranteed to work with latest stable release of sero server.

Table of Contents

Installation

To install seroup, use pip:

pip install seroup

Usage

After installation, you can use the seroup command followed by various subcommands.

seroup <command> <directory (default: current directory)>

Commands

CommandDescription
initCreate default sero.toml in specified directory
enableEnable site
disableDisable site
downloadDownload full site as zip
uploadUpload site
teardownTeardown site
ucorsUpdate CORS settings without reuploading site
registrationRegister a user in sero server

Configuration

The tool uses a configuration file named sero.toml to manage site settings. Below is an example configuration:

[server]
url = "http://mysite.ru"
subdomain = "blog"

[cors]
origins = []

[credentials]
login = "clowzed"
# For security reasons
# you'd better keep this empty
password = ""

Configuration Sections

  • [server]: Contains the server URL and subdomain.
    • url: The base URL of the server.
    • subdomain: The subdomain for the site.
  • [cors]: Contains CORS settings.
    • origins: A list of allowed origins for CORS.
  • [credentials]: Contains login credentials.
    • login: The login username.
    • password: The login password.