Skip to content

Commit

Permalink
fix(ssl): remove special SSL handling (#326)
Browse files Browse the repository at this point in the history
no issue
- pass all request from 80 and 443 through to Ghost and let it do it’s
thing
  • Loading branch information
sebgie authored and acburdine committed Jul 10, 2017
1 parent d2b374e commit a4da2a4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions extensions/nginx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ class NginxExtension extends cli.Extension {
}, {
title: 'Updating Nginx with SSL config',
task: (ctx) => {
// remove proxy && well-known location from port 80 server block
ctx.ssl.http._remove('location');
// remove root path
ctx.ssl.http._remove('root');
// add 'location /' block with 301 redirect to ssl
ctx.ssl.http._add('return', '301 https://$server_name$request_uri');

// add ssl server block
ctx.ssl.conf.nginx._add('server');
let https = ctx.ssl.conf.nginx.server[1];
Expand Down

0 comments on commit a4da2a4

Please sign in to comment.