mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
Nginx config, working deploy, basic theme, repo cleanup
This commit is contained in:
@@ -11,36 +11,28 @@ This directory contains nginx configuration and setup scripts for the Post-ERG t
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
### 1. Set up admin password
|
||||
|
||||
```bash
|
||||
# Make script executable
|
||||
chmod +x nginx/setup-password.sh
|
||||
|
||||
# Run setup (as root on server)
|
||||
sudo ./nginx/setup-password.sh
|
||||
```
|
||||
|
||||
### 2. Deploy nginx configuration
|
||||
### 1. Deploy nginx configuration (automated)
|
||||
|
||||
```bash
|
||||
# From your local machine
|
||||
just deploy-nginx
|
||||
|
||||
# Then on the server:
|
||||
sudo cp /tmp/posterg.conf /etc/nginx/sites-available/posterg
|
||||
sudo ln -s /etc/nginx/sites-available/posterg /etc/nginx/sites-enabled/
|
||||
sudo nginx -t
|
||||
sudo systemctl reload nginx
|
||||
ssh posterg
|
||||
sudo bash /tmp/deploy-production.sh
|
||||
```
|
||||
|
||||
### 3. Set up SSL (production)
|
||||
The deployment script will:
|
||||
- ✅ Fix file permissions (posterg group)
|
||||
- ✅ Set up admin password (if needed)
|
||||
- ✅ Install nginx configuration
|
||||
- ✅ Test and reload nginx
|
||||
- ✅ Verify PHP-FPM is running
|
||||
|
||||
```bash
|
||||
# On server
|
||||
sudo apt install certbot python3-certbot-nginx
|
||||
sudo certbot --nginx -d posterg.erg.be -d www.posterg.erg.be
|
||||
```
|
||||
### 2. SSL/TLS
|
||||
|
||||
SSL/TLS is handled by the upstream reverse proxy and is already working.
|
||||
No additional SSL setup is needed on this server.
|
||||
|
||||
## 🔒 Security Features
|
||||
|
||||
|
||||
Reference in New Issue
Block a user