访问您的Activepieces实例
- HTTPS(推荐):
https://<Server_IP> - 直接内部端口(绕过Nginx):
http://<Server_IP>:8080 - 如果出现自签名证书警告,只需接受警告即可继续。
首次登录与管理员创建
- 访问
https://IP. - 点击创建账户。
- 第一个用户自动成为管理员。
重要文件和目录
- 安装目录:
/root/activepieces - 安装程序生成的环境变量:
/root/activepieces/.env - Docker Compose 配置:
/root/activepieces/docker-compose.yml - 本地 SSL 证书和私钥:
/etc/nginx/ssl/fullchain.crt&/etc/nginx/ssl/privkey.key - Nginx 反向代理配置:
/etc/nginx/sites-available/activepieces.conf - Nginx 激活符号链接:
/etc/nginx/sites-enabled/activepieces.conf
升级活动部件
由于 Activepieces 通过 Docker Compose 运行,升级过程非常简单。
导航至安装目录:
cd /root/activepieces
运行官方更新程序:
sh tools/update.sh
为域名启用SSL
1. 将您的域名指向服务器IP地址。
2. 编辑 Nginx 配置文件并替换两处 server_name <IP>; 使用您的域名 (<your-domain>) 同时适用于 HTTP(端口 80)和 HTTPS(端口 443)的封堵:
vim /etc/nginx/sites-available/activepieces.conf
3. 安装 Certbot:
apt install -y certbot python3-certbot-nginx
4. 运行以下命令生成有效的 Let's Encrypt 证书:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. 在 Nginx 配置中替换 SSL 路径:
vim /etc/apache2/sites-available/activepieces.conf
# Before:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. 重启 Nginx 以应用更改:
systemctl restart nginx
7. 打开浏览器并访问: https://yourdomain.com