alswl / excalidraw-collaboration

excalidraw with collaboration feature, self-hosting, and only one-click deploy
MIT License
393 stars 67 forks source link

无法保存到后端数据库。如果问题持续存在,您应该保存文件到本地,以确保您的工作不会丢失。 #48

Closed xvbai0317 closed 10 months ago

xvbai0317 commented 10 months ago

这是我的docker-compose.yaml version: "3.8"

services: frontend: image: alswl/excalidraw:v0.17.0-fork-b2 environment:

d86eb495353192aa2807d54bdbcbf76e

alswl commented 10 months ago

所有域名都需要是 HTTPS。浏览器禁止在 HTTPS 页面发起 HTTP 请求。

xvbai0317 commented 10 months ago

我修改了我的docker-compose但是好像没有效果 version: "3.8"

services: frontend: image: alswl/excalidraw:v0.17.0-fork-b2 environment:

xvbai0317 commented 10 months ago

server{

HTTPS的默认访问端口443。

    #如果未在此处配置HTTPS的默认访问端口,可能会造成Nginx无法启动。
    listen 443 ssl;

    #填写证书绑定的域名
    server_name huatu.iris-sci.cn;

    #填写证书文件绝对路径
    ssl_certificate cert/huatu.iris-sci.cn.pem;
    #填写证书私钥文件绝对路径
    ssl_certificate_key cert/huatu.iris-sci.cn.key;

    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout 5m;

    #自定义设置使用的TLS协议的类型以及加密套件(以下为配置示例,请您自行评估是否需要配置)
    #TLS协议版本越高,HTTPS通信的安全性越高,但是相较于低版本TLS协议,高版本TLS协议对浏览器的兼容性较差。
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;

    #表示优先使用服务端加密套件。默认开启
    ssl_prefer_server_ciphers on;

     location / {
        proxy_set_header Host $host;
        proxy_pass http://172.22.166.16:8085;
    }

    location /api/v2 {
        proxy_set_header Host $host;
        proxy_pass http://172.22.166.16:8081;
    }

    location /socket.io/ {
        proxy_pass http://172.22.166.16:8082;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
    }

access_log  /www/wwwlogs/access.log;
error_log /www/wwwlogs/huatu.iris-sci.cn_error.log notice;

} 这个是nginx

xvbai0317 commented 10 months ago

2151706261437_ pic 而且我改完docker-compose之后,这里发的仍然是http请求