brain/04 Ressourcen/IT/Appflowy-Cloud Self-Hosting...

3.4 KiB

tags
upnote-import

Appflowy-Cloud Self-Hosting EC2

Link What's New

Server

File-Storage

Bucket unter Amazon angelegt, und kein Hosting eines separaten Minio Containers.

IAM User "kbappflowy" angelegt und Access-Key und Secret angelegt

mit Policy-Generator Policy angelegt, die nur den Af-Bucket und den User kbappflowy erlaubt

EC2 Instanz

SSH-Key erstellt, Typ Putty und RSA

C:\Users\d-chrka.INTERNAL\OneDrive\Backup\.ssh\EC2_Amazon_pakabu1.ppk


Ubuntu Instanz in Ireland mit 30 GB im kostenlosen Plan erstellt

Firewall-Einstellung:

öffentliche IP

Putty Login

username: ubuntu@34.243.126.221

Pfad zum Key einstelle

Docker Konfiguration

Docker-Host installieren

siehe offizielle Docker Doku

https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/EC2_SELF_HOST_GUIDE.md

https://docs.docker.com/engine/install/ubuntu/#installation-methods

Auth for GitHub

OAth Settings in GitHub:

Client ID: Ov23liPnM2dDg0nwkv1m

Secret: 837a7a3ee596051dc51dd8abc83b65bda3bcb08b

Github -> Profile -> Settings -> Developer Settings -> OAuth Apps


  • Elastic IPs einrichten, und mit der IP der lokalen Instanz verbinden
  • Test

weitere Links: https://ec2-34-247-92-92.eu-west-1.compute.amazonaws.com/gotrue/settings

OpenAIKey:

sk-svcacct-mn76x4Y-_attBjJgSwhyrZEMM7VbPxEYVlnNnAqrI8WcNgnl6KE_SgFeFuxCr69T3BlbkFJZkFXi3cVrLtOQ6uET-fRxYDw9UXgiTWpeWrubyMQN6IeS-cYHCuujk_rsxNadFgA

Upgrade

  • git pull auf master brache, änderungen in den branche amazon_deployment megern
  • upload projektordner
  • docker compose pull

Troubelshoot

Instanz Stoppen:

aws ec2 stop-instances --instance-ids i-085b44d8201198b2e --force