解决Ubuntu24布署Seafile局域网访问失败问题

RS
RS
管理员
356
文章
0
粉丝
技术•随笔评论2,409字数 159阅读0分31秒阅读模式

在折腾安装完Seafile后,发现局域网无法访问Ubuntu24上的Seafile,只能通过Ubuntu本机127.0.0.2:8000访问

尝试过关闭防火墙等均无果,后来查阅相关资料,可以在安装目录下conf/gunicorn.conf.py文件配置路由

import os

daemon = True
workers = 5

#default localhost:8000
bind = "127.0.0.1:8000"

#pid
pids_dir = '/opt/seafile/installed/pids'
pidfile = os.path.join(pids_dir,'seahub.pid')

#for file upload,we need a longer timeout value(default is only 30s,too short)
timeout = 1200

limit_request_line = 8190
nano gunicorn.conf.py

默认是"127.0.0.1:8000"导致只能通过127.0.0.1:8000访问,将地址修改成Ubuntu的ip地址即可,我这里是192.168.1.3

# default localhost:8000
#bind = "127.0.0.1:8000"
bind = "192.168.1.3:8000"

重启服务即可

./seafile.sh restart
./seahub.sh restart

 
RS
  • 本文由 RS 发表于2022年4月28日 15:05:36
unraid安装所需的工具 技术•随笔

unraid安装所需的工具

中文语言包: 翻译完成后,如您希望在本地(临时)测试结果, 需要将文本文件压缩到单个ZIP文件中. 将ZIP文件命改为您翻译的语言, 例如. zh_CN.zip. 在WEB GUI中如下设置: 工具 ...
匿名

发表评论

匿名网友
确定

拖动滑块以完成验证