Skip to content

Commit

Permalink
Add server_name directive to nginx ssl block
Browse files Browse the repository at this point in the history
closes #186

- adds a single extra line to the ssl block
- allows multiple blogs to be installed on one server
  • Loading branch information
ErisDS authored and acburdine committed May 5, 2017
1 parent d60d77b commit 22be390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/services/nginx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class NginxService extends BaseService {
// add listen directives
https._add('listen', '443 ssl http2');
https._add('listen', '[::]:443 ssl http2');
https._add('server_name', this.parsedUrl.hostname);
// add ssl cert directives
https._add('ssl_certificate', `/etc/letsencrypt/live/${this.parsedUrl.hostname}/fullchain.pem`);
https._add('ssl_certificate_key', `/etc/letsencrypt/live/${this.parsedUrl.hostname}/privkey.pem`);
Expand Down

0 comments on commit 22be390

Please sign in to comment.