83 lines
2.6 KiB
Markdown
83 lines
2.6 KiB
Markdown
---
|
|
tags:
|
|
- upnote-import
|
|
---
|
|
|
|
# Nginx Proxy Manager für AppFlowy
|
|
|
|
## Configuration AWS Firewall
|
|
|
|
Zugriff auf Admin-Console ist nur möglich, wenn die FW-Regel auf EC2 Instanz für Port 81 aktiviert wurde:
|
|
|
|

|
|
|
|
### Zugriff auf Admin-Console freischalten:
|
|
|
|
## ###
|
|
|
|
Regel mit Port 81 und MyIp einfügen, später wieder löschen
|
|
|
|
<br>
|
|
|
|
Damit Cloud und Web auf gleichem Server veröffentlich werden können, dürfen beide Anwendungen nicht die Ports 81 und 443 belegen
|
|
|
|
AppFlowy-Cloud läuft desshalb nach außen auf Ports 1080 und 1443
|
|
|
|
```
|
|
# NGINX
|
|
# Optional, change this if you want to use custom ports to expose AppFlowy
|
|
NGINX_PORT=1080
|
|
NGINX_TLS_PORT=1443
|
|
```
|
|
|
|
Der Poxy-Manager kann dann über den Endpoint [https://172.31.17.152:2443](https://172.31.17.152:2443) zugreifen.
|
|
|
|
## Configuration AppFlowy-Web
|
|
|
|
AppFlowy-Web läuft desshalb nach außen auf Port 2443
|
|
|
|
docker-compose.yaml
|
|
|
|
```
|
|
version: '3.8'
|
|
services:
|
|
appflowy_web:
|
|
restart: on-failure
|
|
image: pakabu/appflowy-web-app
|
|
ports:
|
|
- 2443:443
|
|
```
|
|
|
|
Der Poxy-Manager kann dann über den Endpoint [http://172.31.17.152:1080](http://172.31.17.152:1080) zugreifen.
|
|
|
|
## Configuration des Proxy-Managers:
|
|
|
|
docker-compose.yaml
|
|
|
|
```
|
|
version: '3.8'
|
|
services:
|
|
app:
|
|
# image: 'jc21/nginx-proxy-manager:2.9.22' # latest fehler: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2750
|
|
image: 'jc21/nginx-proxy-manager:latest'
|
|
restart: unless-stopped
|
|
ports:
|
|
# - '80:80' # Public HTTP Port
|
|
- '443:443' # Public HTTPS Port
|
|
- '81:81' # Admin Web Port
|
|
#- '21:21' # FTP
|
|
environment:
|
|
# PUID: 1026
|
|
# PGID: 100
|
|
DISABLE_IPV6: 'true'
|
|
volumes:
|
|
- /home/ubuntu/NginxProxyManager/data:/data
|
|
- /home/ubuntu/NginxProxyManager/letsencrypt:/etc/letsencrypt
|
|
```
|
|
|
|
Zertifikat muss nur einmal hinterlegt und beiden Hosts zugeordnet werden:
|
|
|
|
<br>
|
|
|
|
siehe auch [https://af.straso.com/app/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/0bff4ac1-5b2e-4883-83d6-c31526a47a28?blockId=aVzzuS](https://af.straso.com/app/7f2dc6d8-e16f-49eb-a4c6-01c7a87e5718/0bff4ac1-5b2e-4883-83d6-c31526a47a28?blockId=aVzzuS)
|