22 lines
317 B
Plaintext
22 lines
317 B
Plaintext
|
|
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
|
|
|
|
|