-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to deploy it ? #756
Comments
i got it,now i am just handling the CORS problem |
Did you succeed? if you are succeed. please tell me how it work? thanks |
git clone https://github.com/excalidraw/excalidraw.git
cd excalidraw/
yarn
yarn start if you dont have yarn,run "npm install -g yarn" first |
yes. install excalidraw is very easy. |
that is just what i said "CORS" problem,you just need to add two lines in your nginx conf :
in the excalidraw's conf :
here is my excalidraw.conf,mybe it's not perfect,but it does work: server {
listen 80;
server_name excalidraw.mydomain.com
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:3000;
add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com;
add_header Access-Control-Allow-Method POST,GET;
}
} |
thanks, I try it. |
thanks, the problem is "CORS", I edit nginx.conf, add some code. It works. thanks very much! |
may i have a local one,thanks
The text was updated successfully, but these errors were encountered: