spring boot - JHipster - Docker-compose - enable SSL -


i'm trying ssl working on jhipster app.

i'm using docker , docker-compose, , have following:

app.yml

ports:         - 443:443 

dockerfile

add /keystore.p12 /keystore.p12 expose 443 

application-prod.yml

server:     port: 443     ssl:         key-store: /keystore.p12         key-store-password: <password>         keystoretype: pkcs12         keyalias: <alias> 

i generated self certified key via keytool -genkey mentioned in application-prod.yml , copied (using add dockerfile) app image. (i'm aware isn't best practice ~ dev purposes).

./mvnw package -pprod docker:build , docker-compose -f src/main/docker/app.yml up runs without error.

when try connect via https://localhost:443 connection refused.

i should mention when ssl entry removed application-prod.yml works expected i.e. site loads ok in http.

thanks,

reading in comments, user misconfiguration...


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -