Commit 19bc841d authored by omega8cc's avatar omega8cc

Nginx: Sync subdir.tpl.php

parent 3aa66481
<?php
$script_user = drush_get_option('script_user');
if (!$script_user && $server->script_user) {
$script_user = $server->script_user;
}
$aegir_root = drush_get_option('aegir_root');
if (!$aegir_root && $server->aegir_root) {
$aegir_root = $server->aegir_root;
}
$nginx_config_mode = drush_get_option('nginx_config_mode');
if (!$nginx_config_mode && $server->nginx_config_mode) {
$nginx_config_mode = $server->nginx_config_mode;
......@@ -143,14 +153,14 @@ location ^~ /<?php print $subdir; ?> {
###
### Include PHP-FPM version override logic if exists.
###
include /data/disk/EDIT_USER/config/server_master/nginx/post.d/fpm_include*;
include <?php print $aegir_root; ?>/config/server_master/nginx/post.d/fpm_include*;
###
### Allow to use non-default PHP-FPM version for the site
### listed in the special include file.
###
if ($user_socket = '') {
set $user_socket "EDIT_USER";
set $user_socket "<?php print $script_user; ?>";
}
<?php endif; ?>
......@@ -169,10 +179,18 @@ location ^~ /<?php print $subdir; ?> {
return 403;
}
###
### Add recommended HTTP headers
###
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
###
### Support for letsencrypt.org per https://tools.ietf.org/html/rfc5785.
###
location ^~ /<?php print $subdir; ?>/.well-known/acme-challenge/ {
alias <?php print $aegir_root; ?>/tools/le/.acme-challenges;
try_files $uri 404;
}
<?php endif; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment