Skip to content

Commit b4d4171

Browse files
authored
Merge pull request #86 from OpenSPP/refactor-structure-michael
[IMP] security bash in single block
2 parents 03780d5 + 57b5136 commit b4d4171

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
@@ -10,13 +10,16 @@ This guide provides essential recommendations for securing your OpenSPP instance
1010
After initial setup and database creation, it's strongly recommended to:
1111

1212
```bash
13-
# Edit the configuration
1413
sudo 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
1718
list_db = False
19+
```
1820

19-
# Restart the service
21+
Restart the service
22+
```bash
2023
sudo systemctl restart openspp
2124
```
2225

@@ -35,29 +38,17 @@ sudo systemctl restart openspp
3538
### 2. Firewall Configuration
3639

3740
```bash
38-
# Install UFW firewall
3941
sudo apt-get install -y ufw
40-
41-
# Allow SSH (adjust port if needed)
4242
sudo ufw allow 22/tcp
43-
44-
# Allow OpenSPP web interface
4543
sudo ufw allow 8069/tcp
46-
47-
# Allow OpenSPP longpolling (if using real-time features)
4844
sudo ufw allow 8072/tcp
49-
50-
# Enable firewall
5145
sudo ufw enable
5246
```
5347

5448
### 3. SSL/TLS with Nginx (Recommended for Production)
5549

5650
```bash
57-
# Install Nginx
5851
sudo apt-get install -y nginx certbot python3-certbot-nginx
59-
60-
# Create Nginx configuration
6152
sudo nano /etc/nginx/sites-available/openspp
6253
```
6354

@@ -113,12 +104,9 @@ server {
113104

114105
Enable the site and get SSL certificate:
115106
```bash
116-
# Enable the site
117107
sudo ln -s /etc/nginx/sites-available/openspp /etc/nginx/sites-enabled/
118108
sudo nginx -t
119109
sudo systemctl reload nginx
120-
121-
# Get SSL certificate
122110
sudo certbot --nginx -d your-domain.com
123111
```
124112

@@ -154,8 +142,6 @@ echo "Backup completed: $DATE"
154142
Make it executable and schedule:
155143
```bash
156144
sudo chmod +x /usr/local/bin/openspp-backup.sh
157-
158-
# Add to crontab (daily at 2 AM)
159145
echo "0 2 * * * /usr/local/bin/openspp-backup.sh" | sudo crontab -
160146
```
161147

0 commit comments

Comments
 (0)