more instructions

This commit is contained in:
Shihaam Abdul Rahman 2022-10-08 04:47:01 +05:00
parent ec26b08675
commit 2c9e61417b
Signed by: shihaam
GPG Key ID: 3B007D22E5584980

View File

@ -30,3 +30,26 @@ services:
volumes: volumes:
- ./database:/var/lib/mysql - ./database:/var/lib/mysql
``` ```
- You must use a reverse proxy with SSL before starting to setup, personally i use nginx with certbot. \
here is my nginx config
```nginx
server {
server_name nextcloud.shihaam.me; #Change this to your domain
listen 80;
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
- SSL with certbot
```bash
sudo certbot --nginx -d nextcloud.shihaam.me
```
- Configure your DNS accordingly and then.. thats it, enjoy.