This commit is contained in:
samialazar 2020-05-11 12:22:12 +02:00
parent 0d53ae9768
commit 1176f21314
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1 @@
__package nginx --state present

View file

@ -0,0 +1,3 @@
# Reacting on message
echo "service nginx reload"

View file

@ -0,0 +1,21 @@
os=$(cat "$__global/explorer/os")
domain="$__object_id"
nginx_config_dir="/etc/nginx/conf.d"
require="__package/nginx" __file $nginx_config_dir/$domain.conf --source - << EOF
server {
server_name $domain;
listen [::]:80 ;
location / {
autoindex on;
root /var/www/html/$domain;
}
}
EOF