Accessing Focalboard
- Mở trình duyệt của bạn và truy cập:
http://<SERVER_IP> - Sign up and create your account on the first visit (this becomes the admin user).
Các tập tin và thư mục quan trọng
- Thư mục cài đặt:
/opt/focalboard - Tệp soạn thảo:
/opt/focalboard/docker-compose.yml - Cấu hình Nginx:
/etc/nginx/sites-available/focalboard - Dung lượng dữ liệu:
/var/lib/docker/volumes/focalboard_fbdata/_data - PostgreSQL volume (if using PostgreSQL):
/var/lib/docker/volumes/focalboard_pgdata/_data - App config (if using PostgreSQL):
/opt/focalboard/config.json - Env file (if using PostgreSQL):
/opt/focalboard/.env
Docker Management
Go to the install directory:
cd /opt/focalboard
Start containers:
docker compose up -d
Xem nhật ký:
docker compose logs -f
Stop containers:
docker compose down
Khởi động lại container:
docker restart focalboard
Access container shell:
docker exec -it focalboard sh
Kích hoạt SSL với tên miền
1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.
2. Edit Nginx config and replace server_name <IP>; với tên miền của bạn (<your-domain>):
vim /etc/nginx/sites-available/focalboard
3. Cài đặt Certbot:
apt install -y certbot python3-certbot-nginx
4. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:
certbot --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Restart Nginx to apply the changes:
systemctl restart nginx
6. Open your browser and visit: https://yourdomain.com