Access Wekan
- 打开浏览器,访问:
http://<SERVER_IP>(HTTP) - 注册您的用户名、邮箱地址和密码。
- 第一个注册的用户将成为管理员,后续注册的用户为普通用户。
- During registration, you may see an “Internal Server Error” because email is not configured, but the user is still created and you can log in normally.
- If you want to disable self-registration, go to Admin Panel → Settings and check “Disable Self Registration”.
Important Paths
- Install directory:
/root/wekan - Compose file:
/root/wekan/docker-compose.yml - File uploads:
/var/lib/docker/volumes/wekan_wekan-files/_data - Database:
/var/lib/docker/volumes/wekan_wekan-db/_data - NGINX config:
/etc/nginx/sites-available/wekan - NGINX 已启用的站点:
/etc/nginx/sites-enabled/wekan
Common Commands
Navigate to project:
cd /opt/wekan
View logs:
docker compose logs -f
Restart services:
docker compose restart
Stop / Start:
docker compose down
docker compose up -d
Check containers:
docker ps
启用邮件(可选)
Edit:
/root/wekan/docker-compose.yml
取消注释并配置:
MAIL_URL=smtp://<mail_url>:25/?ignoreTLS=true&tls={rejectUnauthorized:false}
MAIL_FROM=Wekan Notifications <[email protected]>
Then apply:
docker compose up -d
通过域名启用 SSL
1. 将你的域名指向服务器 IP。
2. Edit docker-compose.yml 将你的域名设置为 ROOT_URL: ROOT_URL=https://your.domain.com
3. 重新创建服务:
cd /root/wekan/
docker compose up -d
3. 编辑 Nginx 配置文件,将以下内容替换为 server_name _; 使用您的域名(server_name <your-domain>;):
vim /etc/nginx/sites-available/wekan
4. Install Certbot:
apt install -y certbot python3-certbot-nginx
5. 运行以下命令生成有效的 Let's Encrypt 证书:
certbot --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
6. 重启 Nginx 以应用更改:
systemctl restart nginx
7. 打开浏览器,访问: https://yourdomain.com