@@ -10,13 +10,16 @@ This guide provides essential recommendations for securing your OpenSPP instance
1010After initial setup and database creation, it's strongly recommended to:
1111
1212``` bash
13- # Edit the configuration
1413sudo nano /etc/openspp/odoo.conf
14+ ```
1515
16- # Set list_db to False for production
16+ Set list_db to False for production
17+ ``` ini
1718list_db = False
19+ ```
1820
19- # Restart the service
21+ Restart the service
22+ ``` bash
2023sudo systemctl restart openspp
2124```
2225
@@ -35,29 +38,17 @@ sudo systemctl restart openspp
3538### 2. Firewall Configuration
3639
3740``` bash
38- # Install UFW firewall
3941sudo apt-get install -y ufw
40-
41- # Allow SSH (adjust port if needed)
4242sudo ufw allow 22/tcp
43-
44- # Allow OpenSPP web interface
4543sudo ufw allow 8069/tcp
46-
47- # Allow OpenSPP longpolling (if using real-time features)
4844sudo ufw allow 8072/tcp
49-
50- # Enable firewall
5145sudo ufw enable
5246```
5347
5448### 3. SSL/TLS with Nginx (Recommended for Production)
5549
5650``` bash
57- # Install Nginx
5851sudo apt-get install -y nginx certbot python3-certbot-nginx
59-
60- # Create Nginx configuration
6152sudo nano /etc/nginx/sites-available/openspp
6253```
6354
@@ -113,12 +104,9 @@ server {
113104
114105Enable the site and get SSL certificate:
115106``` bash
116- # Enable the site
117107sudo ln -s /etc/nginx/sites-available/openspp /etc/nginx/sites-enabled/
118108sudo nginx -t
119109sudo systemctl reload nginx
120-
121- # Get SSL certificate
122110sudo certbot --nginx -d your-domain.com
123111```
124112
@@ -154,8 +142,6 @@ echo "Backup completed: $DATE"
154142Make it executable and schedule:
155143``` bash
156144sudo chmod +x /usr/local/bin/openspp-backup.sh
157-
158- # Add to crontab (daily at 2 AM)
159145echo " 0 2 * * * /usr/local/bin/openspp-backup.sh" | sudo crontab -
160146```
161147
0 commit comments