Compare commits
No commits in common. "ad6771c290e4330d768ec40d6cf71e585cae9296" and "78071570525ed713a3e3ae4793aee409e162f280" have entirely different histories.
ad6771c290
...
7807157052
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +0,0 @@
|
||||
__pycache__
|
||||
data
|
||||
instance
|
||||
venv
|
22
README.md
22
README.md
@ -1,22 +0,0 @@
|
||||
|
||||
# RouterOS backup system
|
||||
|
||||
1. Instalation:
|
||||
- clone (to ex. /opt/routeros_backup)
|
||||
- create venv
|
||||
- install requirements via pip
|
||||
- copy systemd service (routeros_backup.service)
|
||||
|
||||
2. Start
|
||||
- systemctl start routeros_backup.service
|
||||
- go to http://<IP>:81
|
||||
|
||||
3. Register, Login
|
||||
|
||||
4. Configure devices, keys, backups
|
||||
|
||||
5. Done
|
||||
|
||||
## Authors
|
||||
|
||||
- [@linuxiarz.pl]
|
@ -1,18 +0,0 @@
|
||||
[Unit]
|
||||
Description=RouterOS Backup Application
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
#User=www-data # Zmień na odpowiedniego użytkownika
|
||||
#Group=www-data
|
||||
WorkingDirectory=/opt/routeros_backup
|
||||
Environment="PATH=/opt/hosts_app/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
Environment="FLASK_APP=app.py"
|
||||
Environment="FLASK_ENV=production"
|
||||
ExecStart=/opt/routeros_backup/venv/bin/gunicorn -c /opt/routeros_backup/gunicorn_config.py --worker-class gevent --keep-alive 10 app:app
|
||||
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user