mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
updated templates and packages
This commit is contained in:
parent
fd3a3e2019
commit
780641b9ce
10 changed files with 98 additions and 12 deletions
|
@ -1,4 +1,6 @@
|
||||||
TEMPLATE='default'
|
WEB_TEMPLATE='default'
|
||||||
|
PROXY_TEMPLATE='default'
|
||||||
|
DNS_TEMPLATE='default'
|
||||||
WEB_DOMAINS='100'
|
WEB_DOMAINS='100'
|
||||||
WEB_ALIASES='100'
|
WEB_ALIASES='100'
|
||||||
DNS_DOMAINS='100'
|
DNS_DOMAINS='100'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
TEMPLATE='default'
|
WEB_TEMPLATE='default'
|
||||||
|
PROXY_TEMPLATE='default'
|
||||||
|
DNS_TEMPLATE='default'
|
||||||
WEB_DOMAINS='10'
|
WEB_DOMAINS='10'
|
||||||
WEB_ALIASES='10'
|
WEB_ALIASES='10'
|
||||||
DNS_DOMAINS='10'
|
DNS_DOMAINS='10'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
TEMPLATE='hosting'
|
WEB_TEMPLATE='hosting'
|
||||||
|
PROXY_TEMPLATE='hosting'
|
||||||
|
DNS_TEMPLATE='default'
|
||||||
WEB_DOMAINS='50'
|
WEB_DOMAINS='50'
|
||||||
WEB_ALIASES='50'
|
WEB_ALIASES='50'
|
||||||
DNS_DOMAINS='50'
|
DNS_DOMAINS='50'
|
||||||
|
@ -12,5 +14,5 @@ BANDWIDTH='50000'
|
||||||
NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
||||||
SHELL='nologin'
|
SHELL='nologin'
|
||||||
BACKUPS='5'
|
BACKUPS='5'
|
||||||
TIME='11:31:31'
|
TIME='07:49:47'
|
||||||
DATE='2012-07-26'
|
DATE='2013-06-10'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
TEMPLATE='default'
|
WEB_TEMPLATE='default'
|
||||||
|
PROXY_TEMPLATE='default'
|
||||||
|
DNS_TEMPLATE='default'
|
||||||
WEB_DOMAINS='100'
|
WEB_DOMAINS='100'
|
||||||
WEB_ALIASES='100'
|
WEB_ALIASES='100'
|
||||||
DNS_DOMAINS='100'
|
DNS_DOMAINS='100'
|
||||||
|
|
|
@ -40,7 +40,5 @@ server {
|
||||||
location ~ /\.hg/ {return 404;}
|
location ~ /\.hg/ {return 404;}
|
||||||
location ~ /\.bzr/ {return 404;}
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
disable_symlinks if_not_owner from=%home%/%user%;
|
|
||||||
|
|
||||||
include %home%/%user%/conf/nginx.%domain%.conf*;
|
include %home%/%user%/conf/nginx.%domain%.conf*;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,5 @@ server {
|
||||||
location ~ /\.hg/ {return 404;}
|
location ~ /\.hg/ {return 404;}
|
||||||
location ~ /\.bzr/ {return 404;}
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
disable_symlinks if_not_owner from=%home%/%user%;
|
|
||||||
|
|
||||||
include %home%/%user%/conf/nginx.%domain%.conf*;
|
include %home%/%user%/conf/nginx.%domain%.conf*;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,6 @@ server {
|
||||||
location ~ /\.hg/ {return 404;}
|
location ~ /\.hg/ {return 404;}
|
||||||
location ~ /\.bzr/ {return 404;}
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
disable_symlinks if_not_owner from=%docroot%;
|
|
||||||
|
|
||||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11
install/0.9.8/rhel/templates/web/nginx/hosting.sh
Executable file
11
install/0.9.8/rhel/templates/web/nginx/hosting.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Changing public_html permission
|
||||||
|
user="$1"
|
||||||
|
domain="$2"
|
||||||
|
ip="$3"
|
||||||
|
home_dir="$4"
|
||||||
|
docroot="$5"
|
||||||
|
|
||||||
|
chmod 755 $docroot
|
||||||
|
|
||||||
|
exit 0
|
38
install/0.9.8/rhel/templates/web/nginx/hosting.stpl
Executable file
38
install/0.9.8/rhel/templates/web/nginx/hosting.stpl
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
server {
|
||||||
|
listen %ip%:%proxy_ssl_port%;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate %ssl_pem%;
|
||||||
|
ssl_certificate_key %ssl_key%;
|
||||||
|
error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
|
location ~* ^.+\.(%proxy_extentions%)$ {
|
||||||
|
root %sdocroot%;
|
||||||
|
access_log /var/log/httpd/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/httpd/domains/%domain%.bytes bytes;
|
||||||
|
expires max;
|
||||||
|
try_files $uri @fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /error/ {
|
||||||
|
alias %home%/%user%/web/%domain%/document_errors/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location @fallback {
|
||||||
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {return 404;}
|
||||||
|
location ~ /\.svn/ {return 404;}
|
||||||
|
location ~ /\.git/ {return 404;}
|
||||||
|
location ~ /\.hg/ {return 404;}
|
||||||
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
|
disable_symlinks if_not_owner from=%docroot%;
|
||||||
|
|
||||||
|
include %home%/%user%/conf/web/snginx.%domain%.conf*;
|
||||||
|
}
|
||||||
|
|
35
install/0.9.8/rhel/templates/web/nginx/hosting.tpl
Executable file
35
install/0.9.8/rhel/templates/web/nginx/hosting.tpl
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
server {
|
||||||
|
listen %ip%:%proxy_port%;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://%ip%:%web_port%;
|
||||||
|
location ~* ^.+\.(%proxy_extentions%)$ {
|
||||||
|
root %docroot%;
|
||||||
|
access_log /var/log/httpd/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/httpd/domains/%domain%.bytes bytes;
|
||||||
|
expires max;
|
||||||
|
try_files $uri @fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /error/ {
|
||||||
|
alias %home%/%user%/web/%domain%/document_errors/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location @fallback {
|
||||||
|
proxy_pass http://%ip%:%web_port%;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {return 404;}
|
||||||
|
location ~ /\.svn/ {return 404;}
|
||||||
|
location ~ /\.git/ {return 404;}
|
||||||
|
location ~ /\.hg/ {return 404;}
|
||||||
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
|
disable_symlinks if_not_owner from=%docroot%;
|
||||||
|
|
||||||
|
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue