From 1e236ca695acd12d8d18a3905c2f3c7bd69396a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Wed, 20 Jun 2018 14:06:01 +0200 Subject: [PATCH] always enable ssl flag when app has a domain --- pkg/converter/sloppy_file.go | 1 + pkg/converter/testdata/golden0.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/converter/sloppy_file.go b/pkg/converter/sloppy_file.go index f5bcff4..59f0d6b 100644 --- a/pkg/converter/sloppy_file.go +++ b/pkg/converter/sloppy_file.go @@ -115,6 +115,7 @@ func NewSloppyFile(cf *ComposeFile) (*SloppyFile, error) { if uri != nil { app.App.Domain = &sloppy.Domain{URI: uri} app.Domain = uri + app.SSL = sloppy.Bool(true) } if envList, ok := config.Environment.([]interface{}); ok { diff --git a/pkg/converter/testdata/golden0.yml b/pkg/converter/testdata/golden0.yml index 7552be9..d0c746b 100644 --- a/pkg/converter/testdata/golden0.yml +++ b/pkg/converter/testdata/golden0.yml @@ -44,5 +44,6 @@ services: instances: 3 mem: 64 port: 80 + ssl: true volumes: - container_path: /var/www/html