Skip to content

yoanbernabeu/AFFiNE_Jelastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AFFiNE: Deployment file for Jelastic

AFFiNE deployment manifest file for Jelastic

1. Table of Contents

2. Introduction

This repository contains the manifest file for deploying AFFiNE on Jelastic cloud platform.

3. Warning

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.

4. Stack

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

5. Deployment

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

6. Add Basic Authentication

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

7. License

This project is licensed under the MIT License - see the LICENSE file for details

8. Acknowledgments

About

AFFiNE deployment manifest file for Jelastic

Topics

Resources

License

Stars

Watchers

Forks