@@ -16,13 +16,16 @@ This guide provides essential recommendations for securing your OpenSPP instance
1616After initial setup and database creation, it's strongly recommended to:
1717
1818``` bash
19- # Edit the configuration
2019sudo nano /etc/openspp/odoo.conf
20+ ```
2121
22- # Set list_db to False for production
22+ Set list_db to False for production
23+ ``` ini
2324list_db = False
25+ ```
2426
25- # Restart the service
27+ Restart the service
28+ ``` bash
2629sudo systemctl restart openspp
2730```
2831
@@ -41,29 +44,17 @@ sudo systemctl restart openspp
4144### 2. Firewall Configuration
4245
4346``` bash
44- # Install UFW firewall
4547sudo apt-get install -y ufw
46-
47- # Allow SSH (adjust port if needed)
4848sudo ufw allow 22/tcp
49-
50- # Allow OpenSPP web interface
5149sudo ufw allow 8069/tcp
52-
53- # Allow OpenSPP longpolling (if using real-time features)
5450sudo ufw allow 8072/tcp
55-
56- # Enable firewall
5751sudo ufw enable
5852```
5953
6054### 3. SSL/TLS with Nginx (Recommended for Production)
6155
6256``` bash
63- # Install Nginx
6457sudo apt-get install -y nginx certbot python3-certbot-nginx
65-
66- # Create Nginx configuration
6758sudo nano /etc/nginx/sites-available/openspp
6859```
6960
@@ -119,12 +110,9 @@ server {
119110
120111Enable the site and get SSL certificate:
121112``` bash
122- # Enable the site
123113sudo ln -s /etc/nginx/sites-available/openspp /etc/nginx/sites-enabled/
124114sudo nginx -t
125115sudo systemctl reload nginx
126-
127- # Get SSL certificate
128116sudo certbot --nginx -d your-domain.com
129117```
130118
@@ -160,8 +148,6 @@ echo "Backup completed: $DATE"
160148Make it executable and schedule:
161149``` bash
162150sudo chmod +x /usr/local/bin/openspp-backup.sh
163-
164- # Add to crontab (daily at 2 AM)
165151echo " 0 2 * * * /usr/local/bin/openspp-backup.sh" | sudo crontab -
166152```
167153
0 commit comments