AFFiNE deployment manifest file for Jelastic
This repository contains the manifest file for deploying AFFiNE on Jelastic cloud platform.
By default, AFFiNE does not offer an authentication mechanism. This means that anyone with the URL can access the AFFiNE instance. It is recommended to use a reverse proxy with authentication in front of AFFiNE.
The manifest.jps
describes the deployment of AFFiNE on Jelastic. It is composed of 2 parts:
-
Load Balancer (NGINX) : this is the entry point of the application. It is used to distribute the traffic to the AFFiNE instance.
-
AFFiNE : this is the AFFiNE instance. It is composed of the latest dokcer version
affine:nightly-server-latest
To deploy AFFiNE on Jelastic instance, you need to import the manifest.jps
file in the Jelastic dashboard.
Use this link to import the manifest:
https://raw.githubusercontent.com/yoanbernabeu/AFFiNE_Jelastic/main/manifest.jps
To add basic authentication to the AFFiNE instance, you need to add a HTTP Basic Authentication in the Load Balancer.
-
Open a terminal in your computer
-
Create a file
htpasswd
with the following command:
htpasswd -c ~/htpasswd <username>
-
Enter the password when prompted
-
Copy the file
htpasswd
to the Load Balancer in a/var/lib/nginx/htpasswd
-
Edit the file
/etc/nginx/nginx-jelastic.conf
and add the following lines:
// ...
server {
listen *:80;
listen [::]:80;
server_name _;
auth_basic "AFFiNE";
auth_basic_user_file /var/lib/nginx/htpasswd;
// ...
- Restart the Load Balancer
This project is licensed under the MIT License - see the LICENSE file for details
- Jelastic for the deployment platform
- AFFiNE for the software
- Hidora Cloud Provider for the cloud infrastructure