2024-08-13 19:25:36 +00:00
|
|
|
# security | MatterLinux security tracker
|
|
|
|
Soruce code of MatterLinux's security tracker, located at
|
2024-03-21 20:20:24 +00:00
|
|
|
[security.matterlinux.xyz](https://security.matterlinux.xyz)
|
|
|
|
|
|
|
|
### Deployment
|
2024-08-13 19:25:36 +00:00
|
|
|
Web server can be built and deployed with docker compose, here is an
|
|
|
|
example configuration:
|
|
|
|
```yaml
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
security:
|
|
|
|
image: mattersecurity
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:9876:9876"
|
|
|
|
volumes:
|
|
|
|
- "./db:/app/db"
|
|
|
|
```
|
|
|
|
After saving the configuration file, you can build and run the docker container:
|
2024-03-21 20:20:24 +00:00
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
### Adding users
|
|
|
|
After running the application at least once, you can users using
|
2024-08-13 19:25:36 +00:00
|
|
|
the `adduser.sh` script. This script will add the specified user with a
|
2024-03-21 20:20:24 +00:00
|
|
|
randomly generated passwords to the sqlite database. For example:
|
|
|
|
```bash
|
|
|
|
./adduser.sh ngn
|
|
|
|
```
|