Comments (4)
所有域名都需要是 HTTPS。浏览器禁止在 HTTPS 页面发起 HTTP 请求。
from excalidraw-collaboration.
我修改了我的docker-compose但是好像没有效果
version: "3.8"
services:
frontend:
image: alswl/excalidraw:v0.17.0-fork-b2
environment:
- VITE_APP_BACKEND_V2_GET_URL=https://test.com/api/v2/
- VITE_APP_BACKEND_V2_POST_URL=https://test.com/api/v2/post/
- VITE_APP_WS_SERVER_URL=https://huatu.iris-sci.cn/socket.io/
- VITE_APP_FIREBASE_CONFIG={}
- VITE_APP_HTTP_STORAGE_BACKEND_URL=https://huatu.iris-sci.cn/api/v2
- VITE_APP_STORAGE_BACKEND=http
ports:
- 8085:80
storage:
image: alswl/excalidraw-storage-backend:v2023.11.11
restart: always
environment:
- PORT=8081
- STORAGE_URI=redis://redis:6379
ports:
- 8081:8081
room:
image: excalidraw/excalidraw-room:sha-49bf529
ports:
- 8082:80
redis:
image: redis
ports:
- "6378:6379"
volumes:
- ./redis_data/data:/data
from excalidraw-collaboration.
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
from excalidraw-collaboration.
而且我改完docker-compose之后,这里发的仍然是http请求
from excalidraw-collaboration.
Related Issues (20)
- 无法保存到后端数据库。如果问题持续存在,您应该保存文件到本地,以确保您的工作不会丢失。 HOT 11
- Problem with connecting with storage backend HOT 2
- 405 (Method Not Allowed) HOT 1
- 数据存储 HOT 1
- Using an unprivileged port/user HOT 1
- WebSocket connection to 'ws://127.0.0.1:8082/socket.io/ HOT 2
- 服务器部署SSL HOT 1
- Embedding YouTube in a collaborative session doesn't seem to work HOT 6
- support for kubernetes HOT 2
- Fallback for excalidraw.com/collab-server using fork
- iframe Excalidraw
- Images not working when "Export to Link" was used HOT 10
- There seems to be a problem with the collaboration function HOT 5
- 不能协作 不能导出link HOT 1
- Excalidraw image update HOT 4
- FirebaseError: "projectId" not provided in firebase.initializeApp. HOT 1
- Hello, may I ask what I should do after the deployment like modifying the style of the front-end page? HOT 2
- 内网部署主页未成功加载
- using it as an iframe the button of collaboration disappear
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excalidraw-collaboration.