Initial commit of template files
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
server {
|
||||||
|
listen %ip%:%web_ssl_port% ssl;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
root %sdocroot%;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||||
|
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
ssl_certificate %ssl_pem%;
|
||||||
|
ssl_certificate_key %ssl_key%;
|
||||||
|
|
||||||
|
include %home%/%user%/web/%domain%/custom_config/https.conf;
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
server {
|
||||||
|
listen %ip%:%web_port%;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
root %docroot%;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||||
|
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
include %home%/%user%/web/%domain%/custom_config/http.conf;
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
|
||||||
|
}
|
||||||
13
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.sh
Executable file
13
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
user=$1
|
||||||
|
domain=$2
|
||||||
|
ip=$3
|
||||||
|
home=$4
|
||||||
|
docroot=$5
|
||||||
|
|
||||||
|
rm "$home/$user/web/$domain/node_app/app.sock"
|
||||||
|
runuser -l $user -s /bin/bash -c "npm install --prefix $home/$user/web/$domain/node_app"
|
||||||
|
runuser -l $user -s /bin/bash -c "npm start --prefix $home/$user/web/$domain/node_app"
|
||||||
|
sleep 5
|
||||||
|
chmod a+w "$home/$user/web/$domain/node_app/app.sock"
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
server {
|
||||||
|
listen %ip%:%web_ssl_port% ssl http2;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
root %sdocroot%;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||||
|
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
ssl_certificate %ssl_pem%;
|
||||||
|
ssl_certificate_key %ssl_key%;
|
||||||
|
ssl_stapling on;
|
||||||
|
ssl_stapling_verify on;
|
||||||
|
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://unix:%home%/%user%/web/%domain%/node_app/app.sock:/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.(?!well-known\/) {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /vstats/ {
|
||||||
|
alias %home%/%user%/web/%domain%/stats/;
|
||||||
|
include %home%/%user%/web/%domain%/stats/auth.conf*;
|
||||||
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||||
|
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
|
||||||
|
}
|
||||||
34
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.tpl
Normal file
34
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.tpl
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
server {
|
||||||
|
listen %ip%:%web_port%;
|
||||||
|
server_name %domain_idn% %alias_idn%;
|
||||||
|
root %docroot%;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||||
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||||
|
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||||
|
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://unix:%home%/%user%/web/%domain%/node_app/app.sock:/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.(?!well-known\/) {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /vstats/ {
|
||||||
|
alias %home%/%user%/web/%domain%/stats/;
|
||||||
|
include %home%/%user%/web/%domain%/stats/auth.conf*;
|
||||||
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||||
|
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||||
|
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>%domain%</title>
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro|Merriweather:300italic,300" rel='stylesheet' type='text/css'>
|
||||||
|
<style type="text/css">
|
||||||
|
* {margin: 0; padding: 0; box-sizing: border-box;}
|
||||||
|
html, body {height: 100%; color: #000000;}
|
||||||
|
#view {height: 100%; width: 100%; overflow: hidden;}
|
||||||
|
#verticalcenter {margin: 0; position: absolute; top: 50%; width: 100%; transform: translateY(-50%);}
|
||||||
|
#verticalcenter p {font-family: 'Merriweather', serif; text-align: center; font-size: 24px; font-weight: 300; font-style: italic;}
|
||||||
|
#view p#pilink {position: absolute; bottom: 20px; right: 20px; font-size: 20px;}
|
||||||
|
#view p#pilink a {text-decoration: none; color: #BBC3D0;}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="view">
|
||||||
|
<div id="verticalcenter">
|
||||||
|
<p>%domain%</p>
|
||||||
|
</div>
|
||||||
|
<p id="pilink"><a href="https://hosting.jnf.me">π</a></p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user