@@ -13,13 +13,13 @@ This guide provides essential recommendations for securing your OpenSPP instance
1313
1414### 1. Database Security Configuration
1515
16- After initial setup and database creation, it's strongly recommended to:
16+ After initial setup and database creation, it's strongly recommended to modify the configuration file :
1717
1818``` bash
1919sudo nano /etc/openspp/odoo.conf
2020```
2121
22- Set list_db to False for production
22+ Set ` list_db ` to ` False ` for ** Production ** environments:
2323``` ini
2424list_db = False
2525```
@@ -43,22 +43,42 @@ sudo systemctl restart openspp
4343
4444### 2. Firewall Configuration
4545
46+ ** Install ufw**
4647``` bash
4748sudo apt-get install -y ufw
49+ ```
50+
51+ ** Allow SSH (adjust port if needed)**
52+ ``` bash
4853sudo ufw allow 22/tcp
54+ ```
55+
56+ ** Allow OpenSPP web interface**
57+ ``` bash
4958sudo ufw allow 8069/tcp
59+ ```
60+
61+ ** Allow OpenSPP longpolling (if using real-time features)**
62+ ``` bash
5063sudo ufw allow 8072/tcp
64+ ```
65+
66+ ** Enable firewall**
67+ ``` bash
5168sudo ufw enable
5269```
5370
5471### 3. SSL/TLS with Nginx (Recommended for Production)
5572
73+ Run the following commands to install nginx, certbot and create a file in ` /etc/nginx/sites-available/openspp ` :
74+
5675``` bash
5776sudo apt-get install -y nginx certbot python3-certbot-nginx
5877sudo nano /etc/nginx/sites-available/openspp
5978```
6079
61- Add this configuration:
80+ Add this configuration changing ** your-domain.com** to your domain:
81+
6282``` nginx
6383server {
6484 listen 80;
@@ -108,14 +128,13 @@ server {
108128}
109129```
110130
111- Enable the site and get SSL certificate:
131+ Enable the site and get SSL certificate (Change ** your-domain.com ** to your domain) :
112132``` bash
113133sudo ln -s /etc/nginx/sites-available/openspp /etc/nginx/sites-enabled/
114134sudo nginx -t
115135sudo systemctl reload nginx
116136sudo certbot --nginx -d your-domain.com
117137```
118-
119138### 4. Regular Backups
120139
121140Create a backup script:
@@ -124,6 +143,8 @@ Create a backup script:
124143sudo nano /usr/local/bin/openspp-backup.sh
125144```
126145
146+ Add the following content:
147+
127148``` bash
128149#! /bin/bash
129150BACKUP_DIR=" /var/backups/openspp"
0 commit comments