Skip to content

Commit 57b5136

Browse files
committed
[IMP] security bash in single block
1 parent eb0b7f0 commit 57b5136

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

docs/user_guide/administration/security_tuning.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ This guide provides essential recommendations for securing your OpenSPP instance
1616
After initial setup and database creation, it's strongly recommended to:
1717

1818
```bash
19-
# Edit the configuration
2019
sudo 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
2324
list_db = False
25+
```
2426

25-
# Restart the service
27+
Restart the service
28+
```bash
2629
sudo systemctl restart openspp
2730
```
2831

@@ -41,29 +44,17 @@ sudo systemctl restart openspp
4144
### 2. Firewall Configuration
4245

4346
```bash
44-
# Install UFW firewall
4547
sudo apt-get install -y ufw
46-
47-
# Allow SSH (adjust port if needed)
4848
sudo ufw allow 22/tcp
49-
50-
# Allow OpenSPP web interface
5149
sudo ufw allow 8069/tcp
52-
53-
# Allow OpenSPP longpolling (if using real-time features)
5450
sudo ufw allow 8072/tcp
55-
56-
# Enable firewall
5751
sudo ufw enable
5852
```
5953

6054
### 3. SSL/TLS with Nginx (Recommended for Production)
6155

6256
```bash
63-
# Install Nginx
6457
sudo apt-get install -y nginx certbot python3-certbot-nginx
65-
66-
# Create Nginx configuration
6758
sudo nano /etc/nginx/sites-available/openspp
6859
```
6960

@@ -119,12 +110,9 @@ server {
119110

120111
Enable the site and get SSL certificate:
121112
```bash
122-
# Enable the site
123113
sudo ln -s /etc/nginx/sites-available/openspp /etc/nginx/sites-enabled/
124114
sudo nginx -t
125115
sudo systemctl reload nginx
126-
127-
# Get SSL certificate
128116
sudo certbot --nginx -d your-domain.com
129117
```
130118

@@ -160,8 +148,6 @@ echo "Backup completed: $DATE"
160148
Make it executable and schedule:
161149
```bash
162150
sudo chmod +x /usr/local/bin/openspp-backup.sh
163-
164-
# Add to crontab (daily at 2 AM)
165151
echo "0 2 * * * /usr/local/bin/openspp-backup.sh" | sudo crontab -
166152
```
167153

0 commit comments

Comments
 (0)