ubuntu18.04部署seafile无法用域名打开

在ubuntu18.04下部署seafile完成,现在可以用IP地址打开网页,功能都正常。但是在用Nginx配置的时候进行不下去了。
按照教程https://cloud.seafile.com/published/seafile-manual-cn/deploy/deploy_with_nginx.md,第一步让创建一个seafile.conf文件,替换掉/etc/nginx/site-enabled/default,但是系统里本身没有这个文件啊。我也在系统里找不到这么个类似的文件,因此不会弄了。
把教程里那一大段话放到nginx.conf里,修改正确的端口和域名后,网页也还是没法用域名打开。
有人能详细的说下该怎么操作吗?本人linux水平一般。谢谢!

我把教程里面

server{
……
}

这一串是直接放到nginx.conf文件里去的。就改了下我的二级域名、设置的端口,把8000换成8001,把

root /home/user/haiwen/seafile-server-latest/seahub;

这个目录换成了

/opt/seafile/seafile-server-latest/seahub

其他都没动。域名那边也把二级域名写进了DNS解析里。
但就是无法通过域名访问。

你忽略了一点,seafile/conf/gunicorn.conf.py这个文件下有个
将bind = "0.0.0.0:8000"添加进去,注释掉bind = “127.0.0.1:8000”(万一用,留着)。
import os

daemon = True
workers = 5

default localhost:8000

#bind = “127.0.0.1:8000”
bind = “0.0.0.0:8000”

Pid

pids_dir = ‘/opt/seafile/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

那个0.0.0.0:8000和127.0.0.1:8000太折腾人了,一个不注意折腾几天都没问题!:rofl:
谢谢了!