1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00
HyperProxmox/doc/md/02-backend.md
Thomas.GSP 4ed0095a45
Update 02-backend.md
Update Doc
2018-12-18 11:26:53 +00:00

68 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Backend
### Databases
Backend need two database servers: MongoDB and Redis.
MongoDB is the main data storage and redis is used like a cache system.
HyperProxmox can run with defaults configuration, but you should setup redis to work in full memory as well
for the MongoDB indexes.
``` bash
apt-get install mongodb nginx redis-server
```
#### Setup Redis
HyperProxmox doesn't use much memory on your Redis.
vi /etc/redis/redis.conf
```bash
# Networking
bind 127.0.0.1
port 6379
tcp-keepalive 60
# Maximum memory
maxmemory 256mb
maxmemory-policy allkeys-lru
# Disable disk persistence
appendonly no
save ""
```
#### Setup MongoDB
vi /etc/mongodb.conf
```bash
bind_ip = 127.0.0.1
port = 27017
```
## Install python
```
apt-get install python3-redis python3-netaddr python3-pip python3-webpy python3-requests
pip3 install pymongo
```
##  Install sources files
``` bash
apt-get install git
useradd hyperproxmox
cd /opt/ && git clone https://github.com/ThomasGsp/HyperProxmox.git
# Set hyperproxmox
chown hyperproxmox: -R /opt/HyperProxmox
chmod 760 -R /opt/HyperProxmox
# Log dir (you can change it)
mkdir /var/log/hyperproxmox/
chown hyperproxmox: /var/log/hyperproxmox/
#Rm demo keys
rm /opt/HyperProxmox/code/scripts/main/private/keys/Ragnarok.p*
```
[Prerequisites](01-prerequisites.md) <-- Previous | Next --> [Setup - Frontend](03-frontend.md)