@sourecode/deploy-server
v0.0.26
Published
Deploys docker applications
Maintainers
Readme
SoureCode/Deploy - Server
Roadmap
- [ ]
domainsproperty 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
- [ ] Manage user
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-essentialConfiguration
You need the following file structure:
/srv/deploy
|-- config/
| |-- users.json # The user database
| |-- domain.json # The domain configuration
|-- config.json # The main configuration fileconfig.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": "[email protected]",
"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-serverTo start the server run deploy-server in /srv/deploy.
