Generate extra server config with full domain

This commit is contained in:
Manuel Thalmann 2024-12-04 16:48:35 +01:00
parent 546da1a0e9
commit f981ac4d0b

View file

@ -68,7 +68,7 @@ begin
echo "$domain"
end
function getExtraServerConfig -a subdomain domain
function getExtraServerConfig -a domain
end
function getServiceLocationConfig -a domain service location
@ -158,7 +158,7 @@ begin
"server {" \
"listen 80;" \
"server_name $domain;" \
(getExtraServerConfig $subdomain $domain $argv)
(getExtraServerConfig $domain $argv)
for j in (seq 1 2 (count $locations))
set -l service $locations[$j]