Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
efeec84a
Commit
efeec84a
authored
Sep 08, 2014
by
Grazyna Jaworska
Browse files
Nginx: Update vhosts templates to match BOA improvements #unforkboa
parent
b51045a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Nginx/Ssl/server_ssl.tpl.php
View file @
efeec84a
...
...
@@ -4,12 +4,24 @@
### nginx default ssl server
#######################################################
<?php
$satellite_mode
=
drush_get_option
(
'satellite_mode'
);
if
(
!
$satellite_mode
&&
$server
->
satellite_mode
)
{
$satellite_mode
=
$server
->
satellite_mode
;
}
?>
server {
<?php
foreach
(
$server
->
ip_addresses
as
$ip
)
:
?>
listen
<?php
print
$ip
.
':'
.
$http_ssl_port
;
?>
;
<?php
endforeach
;
?>
server_name _;
location / {
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
root /var/www/nginx-default;
index index.html index.htm;
<?php
else
:
?>
return 404;
<?php
endif
;
?>
}
}
http/Provision/Config/Nginx/Ssl/vhost_ssl_disabled.tpl.php
View file @
efeec84a
<?php
if
(
$this
->
ssl_enabled
&&
$this
->
ssl_key
)
:
?>
<?php
$satellite_mode
=
drush_get_option
(
'satellite_mode'
);
if
(
!
$satellite_mode
&&
$server
->
satellite_mode
)
{
$satellite_mode
=
$server
->
satellite_mode
;
}
?>
server {
listen
<?php
print
"
{
$ip_address
}
:
{
$http_ssl_port
}
"
;
?>
;
server_name
<?php
print
$this
->
uri
.
' '
.
implode
(
' '
,
str_replace
(
'/'
,
'.'
,
$this
->
aliases
));
?>
;
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
root /var/www/nginx-default;
index index.html index.htm;
<?php
else
:
?>
return 404;
<?php
endif
;
?>
ssl on;
ssl_certificate
<?php
print
$ssl_cert
;
?>
;
ssl_certificate_key
<?php
print
$ssl_cert_key
;
?>
;
...
...
@@ -11,7 +24,6 @@ server {
ssl_ciphers RC4:HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
keepalive_timeout 70;
return 404;
### Do not reveal Aegir front-end URL here.
}
...
...
http/Provision/Config/Nginx/subdir_disabled.tpl.php
View file @
efeec84a
<?php
$satellite_mode
=
drush_get_option
(
'satellite_mode'
);
if
(
!
$satellite_mode
&&
$server
->
satellite_mode
)
{
$satellite_mode
=
$server
->
satellite_mode
;
}
?>
location ^~ /
<?php
print
$subdir
;
?>
/ {
return 404;
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
root /var/www/nginx-default;
index index.html index.htm;
<?php
else
:
?>
return 404;
<?php
endif
;
?>
### Do not reveal Aegir front-end URL here.
}
http/Provision/Config/Nginx/vhost_disabled.tpl.php
View file @
efeec84a
<?php
$satellite_mode
=
drush_get_option
(
'satellite_mode'
);
if
(
!
$satellite_mode
&&
$server
->
satellite_mode
)
{
$satellite_mode
=
$server
->
satellite_mode
;
}
?>
server {
listen *:
<?php
print
$http_port
;
?>
;
server_name
<?php
print
$this
->
uri
.
' '
.
implode
(
' '
,
str_replace
(
'/'
,
'.'
,
$this
->
aliases
));
?>
;
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
root /var/www/nginx-default;
index index.html index.htm;
<?php
else
:
?>
return 404;
<?php
endif
;
?>
### Do not reveal Aegir front-end URL here.
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment