Skip to content

Commit 643ae05

Browse files
authored
Merge pull request #474 from bacongobbler/feat-deis-tls
docs(ssl-certificates): add docs on deis tls:enable
2 parents 0a1c57d + 6c1f4fd commit 643ae05

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/applications/ssl-certificates.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,21 @@ Pay attention to the output. It should print `SSL certificate verify ok`. If it
124124
like `common name: www.example.com (does not match 'www.somedomain.com')` then something is not
125125
configured correctly.
126126

127+
## Enforcing SSL at the Router
128+
129+
To enforce all HTTP requests be redirected to HTTPS, TLS can be enforced at the router level by
130+
running
131+
132+
$ deis tls:enable -a foo
133+
Enabling https-only requests for foo... done
134+
135+
Users hitting the HTTP endpoint for the application will now receive a 301 redirect to the HTTPS
136+
endpoint.
137+
138+
To disable enforced TLS, run
139+
140+
$ deis tls:disable -a foo
141+
Disabling https-only requests for foo... done
127142

128143
## Remove Certificate
129144

0 commit comments

Comments
 (0)