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

92 lines
3.4 KiB
Markdown

---
tags:
- upnote-import
---
# Appflowy-Cloud Self-Hosting EC2
[Link What's New](https://appflowy.io/what-is-new)
# Server
# File-Storage
Bucket unter Amazon angelegt, und kein Hosting eines separaten Minio Containers.
IAM User "[kbappflowy](https://473473139163.signin.aws.amazon.com/console)" angelegt und Access-Key und Secret angelegt
mit [Policy-Generator](https://awspolicygen.s3.amazonaws.com/policygen.html) 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
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/COr-VXPiIPzXB-AfOyv-N-cOP1WvQbOVJwmDzNdL7p8=.png)<br>
Ubuntu Instanz in Ireland mit 30 GB im kostenlosen Plan erstellt
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/YenYw7XJBUjG3ZdQTcRbbeTsS8eRyj7o8S3QnmeV7v4=.png)
### Firewall-Einstellung:
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/6AsuwoBAhKn9u2BpPY-gmaKlsGQ2Sdlj1HkzlAxzw2Q=.png)![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/bEPFldBMwwfTS-BaNS3ASHq1Kk4wkdVUWDsKa5OfycA=.png)
### öffentliche IP
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/Y_m5CrYVUYoFnqftAo72FtY8ePKoIvf8GQ9dEzP_pII=.png)
### Putty Login
username: [ubuntu@34.243.126.221](mailto:ubuntu@34.243.126.221)
Pfad zum Key einstelle
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/QlvuA2R04VkPfSVwLRuCgMfLeX8WOtkmO7DOlx3rFh4=.png)
## 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://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/EC2_SELF_HOST_GUIDE.md)
[https://docs.docker.com/engine/install/ubuntu/#installation-methods](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
![](https://notes.straso.com/api/file_storage/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/v1/blob/9064243a%2D78ac%2D4a31%2D8a69%2D95b70938c9d9/X1iGrMzO68hsNXqOlmCVxHdBA_m5VnpV9MyhZxzrtEY=.png)<br>
- [Elastic IPs](https://eu-west-1.console.aws.amazon.com/ec2/home?region=eu-west-1#Addresses:) 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](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
```