- Configurazione del dominio completata
- Istanza AWS EC2 creata
- Certificato emesso utilizzando ACM
- Configurata la porta 443 e collegato il certificato tramite ALB
- ALB instrada il traffico del dominio all’istanza EC2 sulla porta 80
Prima di creare Discourse, ho modificato il file app.yml per configurare le connessioni HTTP:
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
Dopo aver apportato le modifiche, ho creato Discourse e controllato la configurazione, ma nginx continua a richiedere una chiave SSL con il seguente errore:
[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)
C’è un modo per impedire a nginx di tentare di caricare la chiave o per far funzionare correttamente nginx su HTTP?