0.0.26 • Published 5 years ago

@sourecode/deploy-server v0.0.26

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

SoureCode/Deploy - Server

Roadmap

  • domains property in user
  • Certbot
  • Roles for user
  • Permission system
  • Cleanup Job
    • VHost
    • Container
    • Image
    • webroot
  • WebInterface
    • Login
    • Logout
    • Unregister
    • View deployments (Container list? VHost list?)
    • Admin
      • Manage user
        • Delete
        • Create
        • Set password
      • Manage VHosts
      • Manage Container

Requirements

It is designed to run on a clean server.

$ sudo apt-get update
$ sudo apt-get install nginx
$ sudo apt-get update
$ sudo apt-get install build-essential

Configuration

You need the following file structure:

/srv/deploy
|-- config/
|   |-- users.json # The user database
|   |-- domain.json # The domain configuration
|-- config.json # The main configuration file

config.json

This is the main configuration. It should looks like this:

{
    "secret": "yoursecret",
    "webroot": "/var/www/vhosts",
    "nginx": "/etc/nginx",
    "port": 2872,
    "users": "./config/users.json",
    "domains": "./config/domains.json",
    "register": true
}

config/users.json

Just a file storage for the user.

[]

The passwords will be hashed with argon2

Example user:

{
    "username": "admin",
    "password": "...",
    "email": "admin@sourecode.de",
    "domains": []
}

Hint: The domains property is actual not usable, but will be used to assign users only a range of domains that they can use.

config/domain.json

Used to store the usable domains.

["sourecode.de"]

Installation

Install with:

yarn global add @sourecode/deploy-server

To start the server run deploy-server in /srv/deploy.

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago