刘玉辉
|
各位,我用nginx-proxy做的前端,代理转发8080及4430端口(80及443要备案就没用)。后端分别是wordpress博客网站和seafile网盘。两个网站都有证书,都与站点域名完全匹配,博客站点能正常使用https访问,但seafile只能用普通的http访问,https访问不了。即使我把seafile的证书放在seafile的挂载目录下的ssl目录下也没用,放出docker-compose.yml文件如下,各位帮我分析是什么问题: [root@www yunpan]# cat docker-compose.yml version: '3'
services: #(博客这一段省略) #网盘
seafile: image: seafileltd/seafile:latest volumes: - yunpan:/shared expose: - 80 - 443 restart: always environment: VIRTUAL_HOST: yunpan.linuxs.top SEAFILE_SERVER_HOSTNAME: yunpan.linuxs.top
nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always ports: - "8080:80" - "4430:443" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - nginx_certs:/etc/nginx/certs:ro
volumes: yunpan: nginx_certs:
networks: default: external: name: nginx-proxy =============================================================== 证书如下: [root@www yunpan]# ll /var/lib/docker/volumes/yunpan_nginx_certs/_data/ total 16 -rw-r--r-- 1 root root 3658 Aug 29 17:48 blog.linuxs.top.crt -rw-r--r-- 1 root root 1674 Aug 29 17:48 blog.linuxs.top.key -rw-r--r-- 1 root root 3662 Aug 28 15:12 yunpan.linuxs.top.crt -rw-r--r-- 1 root root 1678 Aug 28 15:12 yunpan.linuxs.top.key [root@www yunpan]# ll /var/lib/docker/volumes/yunpan_yunpan/_data/ssl/ total 8 -rw-r--r-- 1 root root 3662 Aug 28 15:12 yunpan.linuxs.top.crt -rw-r--r-- 1 root root 1678 Aug 28 15:12 yunpan.linuxs.top.key ================================================================ 总之博客网站能用 https://blog.linuxs.top:4430访问,网盘不能用https://yunpan.linuxs.top:4430访问,哪位知道原因吗? |
刘玉辉
|
不是端口占用问题,我去掉博客,只在nginx-proxy下面挂载seafile也是这个结果 |