Notion open source alternative all-in-one knowledge base tool AFFINE local deployment and remote access

Preface

This article explains how to deploy AFFINE, Notion's open source alternative all-in-one knowledge base tool, locally and achieve remote access over the public network. AFFiNE is a new open source project designed to overcome some of the security and privacy limitations of Notion and Miro. It is designed to help users gather meeting notes, to-do items, goals in documents, brainstorming on video conference whiteboards, and feedback from customer interviews into a unified platform. With AFFiNE, users can better store, integrate and manage all workflows.

Combined with the cpolar intranet penetration tool, AFFINE can achieve remote access to the public network, allowing remote access and collaboration for teams, real-time collaboration and sharing of work content in different locations. Even if they work in different places, they can still easily use AFFINE to share meeting notes, to-do items and documents to achieve efficient team collaboration.

cpolar intranet penetration provides higher security and privacy protection. By using encrypted communication channels, AFFiNE and intranet penetration technology can ensure the security of data transmission, which provides users and teams with more reliable protection, making They can handle and store sensitive work content with confidence.

Docker installs Notion, a free open source alternative to AFFINE, combined with intranet penetration to achieve remote access

1. Install AFFINE using Docker

AFFiNEThe easiest way to install and use is to use Docker to start with one click:

docker pull ghcr.io/toeverything/affine-self-hosted:pre-alpha

269e56bbcbc4c876f2ebdd7fcaa6bad

docker run -d -p 3000:3000  --name affine ghcr.io/toeverything/affine-self-hosted:pre-alpha

8ed8c30a7bed80219791dc6f458727a

Then open http://localhost:3000 in the browser.

620fd4f950fe4dca1db28b35381bf79

In addition, we can also get the code and start it directly:

git clone https://github.com/toeverything/AFFiNE.git

cd AFFiNE

Then install the project dependencies:

npm i -g pnpm

pnpm i

Then you can start the project directly:

pnpm start

Also open http://localhost:3000 in the browser.

image-20231114110107524

2. Install cpolar intranet penetration tool

Above we successfully installed AFFINE in docker and successfully accessed the LAN. Next we installed the cpolar intranet penetration tool and forwarded the http public network address mapped to the local port through cpolar. We can easily achieve remote access without registering a domain name ourselves. Purchase a cloud server. Here are the steps to install cpolar

cpolar official website address: https://www.cpolar.com

  • Use one-click script installation command
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
  • Add services to the system
sudo systemctl enable cpolar
  • Start cpolar service
sudo systemctl start cpolar

After cpolar is successfully installed, access Linux port 9200 on an external browser: [http://LAN ip:9200]. Log in using your cpolar account. After logging in, you can see the cpolar web configuration interface, which is connected to the web management interface. Just configure

image-20230831171159175

3. Configure AFFINE public network access address

Click Tunnel Management - Create Tunnel on the left dashboard to create an AFFINE cpolar public network address tunnel.

  • Tunnel name: You can customize the name. Be careful not to duplicate the existing tunnel name.
  • Protocol: Select http
  • Local address: 3000 (port for LAN access)
  • Domain name type: Choose a random domain name for free
  • Region: Select China Top

Click创建

image-20231114110508202

After the tunnel is successfully created, click the status on the left - online tunnel list to view the generated public network access address. There are two access methods, one is http and https

image-20231114110642157

4. Achieve public network remote access to AFFINE

Use the above cpolar https public network address to access the browser of any device, and you can successfully see the AFFINE interface. In this way, a public network address that can be accessed remotely is created. There is no need to purchase a cloud server yourself, and it can be published to the public. Internet access.

image-20231114110801399

Since the tunnel created using cpolar above uses a random public network address, it will change randomly within 24 hours, which is not conducive to long-term remote access.

I usually use a fixed second-level subdomain name because I hope that when I send the URL to my colleagues, it will be a fixed and easy-to-remember public address (for example: affine.cpolar.cn). This will make it more formal and facilitate drawing communication. cooperation. Therefore, we can configure a second-level subdomain name for it. This address is a fixed address and will not change randomly [ps: cpolar.cn has been filed]

Note that you need to upgrade the cpolar package to a basic package or above, and the bandwidth corresponding to each package is different. [cpolar.cn has been registered]

Log in to the cpolar official website , click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click Reserve, and copy the reserved second-level subdomain name after the reservation is successful.

image-20231114111122382

After the reservation is successful, copy the name of the second-level subdomain name that was successfully reserved.

image-20231114111206102

Return to the cpolar web UI management interface, click Tunnel Management - Tunnel List on the left dashboard, find the tunnel you want to configure, and click Edit on the right

image-20231114111233277

Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel.

  • Domain name type: Select a second-level subdomain name
  • Sub Domain: Fill in the successfully reserved second-level subdomain name

Click 更新(note, click once to update, no need to submit again)

image-20231114111309360

After the update is completed, open the online tunnel list. At this time, you can see that the public network address has changed and the address name has become a fixed second-level subdomain name.

image-20231114111332118

Finally, we use a fixed public network address to access, and we can see that the access is successful. In this way, a fixed and permanent public network address is set.

image-20231114111407292

Guess you like

Origin blog.csdn.net/xianyun_0355/article/details/134812824