nginx开启ssl后文件上传失败

问题描述: 本人使用DOCKER安装nginx、seafile,nginx在前面做了一层代理,我安装完成后不使用证书是没有问题的,但是使用了证书后,文件下载没问题,文件上传会报“网络错误”。
我的nginx config配置如下:
server {
listen 10000 ;
ssl on;
server_name seafile.samwei.name;
client_max_body_size 1024m;
ssl_certificate /etc/ssl/certs/1_seafile.samwei.name_bundle.crt;
ssl_certificate_key /etc/ssl/certs/2_seafile.samwei.name.key;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ‘ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-SEED-SHA:DHE-RSA-CAMELLIA128-SHA:HIGH:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS’;
ssl_prefer_server_ciphers on;
proxy_set_header X-Forwarded-For $remote_addr;
add_header Strict-Transport-Security “max-age=31536000; includeSubDomains”;
server_tokens off;

location / {
proxy_pass http://seafile:80;
proxy_read_timeout 1200s;
}
}

docker-compose.yml配置:
version: “3”
services:
db:
image: mysql:5.5
volumes:
- /home/seafile/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ‘root’
networks:
- my-seafile-bridge
memcached:
image: memcached:1.5.6
entrypoint: memcached -m 256
networks:
- my-seafile-bridge
seafile:
image: seafileltd/seafile-mc:latest
# ports:
# - “10000:80”
volumes:
- /home/seafile/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=root # Requested, the value shuold be root’s password of MySQL service.
- SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is ‘me@example.com’.
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is ‘asecret’.
depends_on:
- db
- memcached
networks:
- my-seafile-bridge
nginx:
image: nginx:latest
ports:
- “10000:10000”
volumes:
- /home/seafile/nginx/config:/etc/nginx/conf.d
- /home/seafile/nginx/logs:/var/log/nginx
- /home/seafile/nginx/ssl:/etc/ssl/certs
depends_on:
- seafile
networks:
- my-seafile-bridge
networks:
my-seafile-bridge:
driver: bridge

求大神帮忙看一下问题,谢谢

系统管理设置界面中的url没修改吧

是的,url写成http了,改成https就好了,谢谢

你好请问你是怎么解决这个问题的,我最近也遇到这个问题