怎么搭建Plane-牛翰网

怎么搭建Plane

Github地址
https://github.com/makeplane/plane

  1. 环境查看
    系统环境
# cat /etc/redhat-release 
CentOS Stream release 9
# uname -a
Linux CentOSStream9Zabbix203 5.14.0-391.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 28 20:35:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  1. 部署
    下载代码
# git clone https://github.com/makeplane/plane

部署

# ./setup.sh

修改允许跨域访问

# cat apiserver/.env
CORS_ALLOWED_ORIGINS="https://plane.xxx.com"

这里需要设置的是反向代理的站点的域名表示允许使用该域名访问到api

如果不设置跨域则使用ip加端口访问可以正常,使用反向代理域名访问会在登录后会出现以下错误提示

CSRF Verification Failed
It looks like your form submission has expired or therewas a problem with your reguest.
Please try the following.
Refresh the page and try submitting the form
a0aln.
Ensure that cookies are enabled in your browser

运行

# docker-compose -f docker-compose-local.yml up -d

默认映射到本机的80端口 如果需要修改端口则修改根目录下的.env文件修改

# NGINX_PORT=81

请登录后发表评论

    没有回复内容