Skip to content

Commit

Permalink
added vhost additionalConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Feb 15, 2017
1 parent b7f3765 commit 844cc89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/controllers/VhostController.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
/**

/*
* HiDev Nginx plugin
*
* @link https://github.com/hiqdev/hidev-nginx
Expand Down Expand Up @@ -39,6 +40,7 @@ class VhostController extends \hidev\controllers\CommonController
protected $_webDir;
protected $_logDir;
protected $_fpmSocket;
protected $_additionalConfig;

public function actionChmodSsl()
{
Expand Down Expand Up @@ -191,4 +193,14 @@ public function getServerName()
{
return implode(' ', $this->getDomains());
}

public function getAdditionalConfig()
{
return $this->_additionalConfig;
}

public function setAdditionalConfig($additinalConfig)
{
$this->_additionalConfig = $additinalConfig;
}
}
2 changes: 2 additions & 0 deletions src/views/nginx/default.twig
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,5 @@ server {
return 404;
}
}

{{ this.additionalConfig }}

0 comments on commit 844cc89

Please sign in to comment.