Generate extra server config with full domain
This commit is contained in:
parent
546da1a0e9
commit
f981ac4d0b
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ begin
|
||||||
echo "$domain"
|
echo "$domain"
|
||||||
end
|
end
|
||||||
|
|
||||||
function getExtraServerConfig -a subdomain domain
|
function getExtraServerConfig -a domain
|
||||||
end
|
end
|
||||||
|
|
||||||
function getServiceLocationConfig -a domain service location
|
function getServiceLocationConfig -a domain service location
|
||||||
|
@ -158,7 +158,7 @@ begin
|
||||||
"server {" \
|
"server {" \
|
||||||
"listen 80;" \
|
"listen 80;" \
|
||||||
"server_name $domain;" \
|
"server_name $domain;" \
|
||||||
(getExtraServerConfig $subdomain $domain $argv)
|
(getExtraServerConfig $domain $argv)
|
||||||
|
|
||||||
for j in (seq 1 2 (count $locations))
|
for j in (seq 1 2 (count $locations))
|
||||||
set -l service $locations[$j]
|
set -l service $locations[$j]
|
||||||
|
|
Loading…
Reference in a new issue