comment fixes
parent
e5d39c5509
commit
1716814665
|
@ -301,7 +301,7 @@ export default (domain, domains, global, ipPortPairs) => {
|
|||
if (!domain.https.forceHttps.computed && domain.https.certType.computed === 'letsEncrypt')
|
||||
serverConfig.push(['include', 'nginxconfig.io/letsencrypt.conf']);
|
||||
|
||||
if (domain.php.wordPressRules.computed) serverConfig.push(['include', 'nginxconfig.io/wordpress.conf']);
|
||||
if (domain.php.wordPressRules.computed) serverConfig.push(['include', `nginxconfig.io/${domain.server.domain.computed}.wordpress.conf`]);
|
||||
if (domain.php.drupalRules.computed) serverConfig.push(['include', 'nginxconfig.io/drupal.conf']);
|
||||
if (domain.php.magentoRules.computed) serverConfig.push(['include', 'nginxconfig.io/magento.conf']);
|
||||
if (domain.php.joomlaRules.computed) serverConfig.push(['include', 'nginxconfig.io/joomla.conf']);
|
||||
|
|
|
@ -24,6 +24,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import phpPath from '../../util/php_path';
|
||||
import phpUpstream from '../../util/php_upstream';
|
||||
|
||||
export default (global, domain) => {
|
||||
const config = {};
|
||||
|
||||
|
@ -62,7 +65,8 @@ export default (global, domain) => {
|
|||
include: 'nginxconfig.io/php_fastcgi.conf',
|
||||
};
|
||||
if (domain.php.wordPressRules.computed) {
|
||||
config['location = /wp-login.php'].fastcgi_pass = 'unix:/run/php/php7.4-fpm.sock';
|
||||
config['location = /wp-login.php'].fastcgi_pass = domain.php.phpBackupServer.computed !== ''
|
||||
? phpUpstream(domain) : phpPath(domain)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ export default (domains, global) => {
|
|||
files[`${sitesDir}/${domain.server.domain.computed}.conf`] = toConf(websiteConf(domain, domains, global, ipPortPairs));
|
||||
// WordPress
|
||||
if (domains.some(d => d.php.wordPressRules.computed))
|
||||
files['nginxconfig.io/wordpress.conf'] = toConf(wordPressConf(global, domain));
|
||||
files[`nginxconfig.io/${domain.server.domain.computed}.wordpress.conf`] = toConf(wordPressConf(global, domain));
|
||||
}
|
||||
|
||||
// Let's encrypt
|
||||
|
|
Loading…
Reference in New Issue