- Domain-Konfiguration abgeschlossen
- AWS EC2-Instanz erstellt
- Zertifikat mit ACM ausgestellt
- 443 konfiguriert und das Zertifikat über ALB verbunden
- ALB leitet Domain-Traffic an die EC2-Instanz über Port 80 weiter
Bevor ich Discourse baute, habe ich die Datei app.yml geändert, um HTTP-Verbindungen zu konfigurieren:
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
## Uncomment the next line to enable the IPv6 listener
#- "templates/web.ipv6.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
- "80:80" # http
#- "443:443" # https
Nachdem ich die Änderungen vorgenommen hatte, baute ich Discourse und überprüfte die Konfiguration, aber nginx fordert weiterhin einen SSL-Schlüssel mit der folgenden Fehlermeldung an:
[emerg] 7416#7416: cannot load certificate "/shared/ssl/discourse.xxxxxxx.com.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0480006C:PEM routines::no start line:Expecting: TRUSTED CERTIFICATE)
Gibt es eine Möglichkeit, nginx daran zu hindern, den Schlüssel zu laden, oder nginx ordnungsgemäß über HTTP zum Laufen zu bringen?