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

1.3 KiB

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.

apt-get install mongodb nginx redis-server

Setup Redis

HyperProxmox doesn't use much memory on your Redis.

vi /etc/redis/redis.conf

# 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

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

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 <-- Previous | Next --> Setup - Frontend