Comments (10)
Experiencing the same issue here. Behavior is persistent across Firefox Nightly 125.0a1 (2024-03-02)
and Microsoft Edge 123.0.2420.10
on Windows 11, and Samsung Internet v23.0.1.1
on a Tab S7+ running One UI 5.1. Affine looks gorgeous and I would love to use it as an Obsidian replacement!
from affine.
AFFiNE uses the websocket protocol to sync data with the cloud. Please refer to nginx's official blog or other articles to configure websocket support for your nginx: https://www.nginx.com/blog/websocket-nginx/
from affine.
For anybody using nginx proxy manager and having the same issue:
you just need to edit your proxy host and enable websockets on the details tab (see image)
from affine.
Thanks for the answer and suggestion @darkskygit ! Maybe it could be interesting to add a footnote on web sockets on the self-hosting guide. I can open a PR if needed :)
the document in repo is outdated, now we have a internal affine workspace that is rewriting related documents
once we complete the relevant work, we will publish it on our social accounts
from affine.
Thanks everyone, enabling websocket support worked! For anyone in the future, here's what the block for affine looks like in my nginx conf file:
server {
server_name affine.your.domain;
location / {
proxy_pass http://localhost:3010;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
<auto-generated certbot SSL stuff here>
}
from affine.
Okay, thanks for the answer, I will have a look :)
from affine.
If you're just starting to configure your server, you might also consider caddy, which has https and websocket support out of the box: https://caddyserver.com/docs/
If you just want to access the services on your server from anywhere, you can also consider tailscale or zerotier, which allow you to connect directly to your server in an encrypted manner through a fixed IP or private domain name at any network, and do not require purchasing a domain name and configuration https
from affine.
Thanks for the answer and suggestion @darkskygit ! Maybe it could be interesting to add a footnote on web sockets on the self-hosting guide. I can open a PR if needed :)
from affine.
Issue Status: ✅ Answered
✅ Answered
The issue actually turned out to be a question or a misunderstanding, and it has been answered or resolved.
This is an automatic reply by the bot.
from affine.
@gamersekofy Hi, I'm using nginx proxy manager too and I have the same configs as yours. But, I got cors error. Did you see it before?
Access to font at 'https://cdn.affine.pro/fonts/Inter-Light-BETA.woff' from origin 'http:/xxxxxxx:3010' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
from affine.
Related Issues (20)
- Why there can be only 3 users per Workspace in Affine self-hosted version? HOT 3
- markopolo top HOT 3
- Ability to add more details to tasks. (Kanban/table views) HOT 1
- Date entry in table has a bug, changes to another date HOT 1
- Paws and Pals loaded from CDN on self-hosted HOT 1
- email url can not be set to contain port HOT 1
- Can't login locally HOT 2
- Font size HOT 1
- Importing HTML exports from evernote -> created untitled note with title from evernote as body HOT 1
- dismissAiOnboarding modal always shown HOT 2
- Improve connector logic for UX design workflows HOT 2
- gpt-4-vision-preview deprecated make it real HOT 1
- chrome extention to save with one clike HOT 1
- client sync to self-host server HOT 2
- S3 Storage Service HOT 2
- Improve tag creation HOT 1
- Can't use slash or AI because of some unknown DOMException and graphql issue HOT 2
- Rotation Mechanism for Shapes/ Grouped Items HOT 1
- copying a database with pages as titles leads to broken outgoing links HOT 2
- sync page infos with database collums HOT 2
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 affine.