gencode
This commit is contained in:
parent
0d53ae9768
commit
1176f21314
4 changed files with 25 additions and 0 deletions
1
sami/my-cdist/.cdist/type/__nginx/manifest
Normal file
1
sami/my-cdist/.cdist/type/__nginx/manifest
Normal file
|
@ -0,0 +1 @@
|
|||
__package nginx --state present
|
0
sami/my-cdist/.cdist/type/__nginx/singleton
Normal file
0
sami/my-cdist/.cdist/type/__nginx/singleton
Normal file
3
sami/my-cdist/.cdist/type/__nginx_site/gencode-remote
Normal file
3
sami/my-cdist/.cdist/type/__nginx_site/gencode-remote
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Reacting on message
|
||||
|
||||
echo "service nginx reload"
|
21
sami/my-cdist/.cdist/type/__nginx_site/manifest
Normal file
21
sami/my-cdist/.cdist/type/__nginx_site/manifest
Normal 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
|
||||
|
||||
|
Loading…
Reference in a new issue