今天升级Seafile社区版到13.0.12,发现外配的“seafile.nginx.conf”不生效。进入seafile容器检查,发现“/etc/nginx/sites-enabled/seafile.nginx.conf”是个真实存在的文件,而不是指向“/shared/nginx/conf/seafile.nginx.conf”的软链接文件;因此导致外配的“seafile.nginx.conf”无效。
临时应对方法:
编辑seafile.yaml文件,添加command,删除容器中“seafile.nginx.conf”文件,重新建立软链接。
......
restart: unless-stopped
command: /bin/bash -c "if [ ! -L /etc/nginx/sites-enabled/seafile.nginx.conf ]; then rm -f /etc/nginx/sites-enabled/seafile.nginx.conf; ln -s /shared/nginx/conf/seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf; fi; /sbin/my_init -- /scripts/enterpoint.sh"
......