feat(cli) : separate cli, use templates WIP
This commit is contained in:
parent
a685758881
commit
8a62a447a8
6 changed files with 96 additions and 63 deletions
|
@ -1,64 +0,0 @@
|
|||
# ----------------------------------------------------------------------
|
||||
# | Config file for <?=$this->e($domain)?> host |
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
server {
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
server_name <?=$this->e($domain)?>;
|
||||
|
||||
return 301 https://<?=$this->e($domain)?>$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl http2;
|
||||
|
||||
server_name www.<?=$this->e($domain)?>;
|
||||
|
||||
include h5bp/tls/ssl_engine.conf;
|
||||
include h5bp/tls/certificate_files.conf;
|
||||
include h5bp/tls/policy_strict.conf;
|
||||
|
||||
return 301 $scheme://<?=$this->e($domain)?>$request_uri;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
# listen [::]:443 ssl http2 accept_filter=dataready; # for FreeBSD
|
||||
# listen 443 ssl http2 accept_filter=dataready; # for FreeBSD
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl http2;
|
||||
|
||||
# The host name to respond to
|
||||
server_name <?=$this->e($domain)?>;
|
||||
|
||||
include h5bp/tls/ssl_engine.conf;
|
||||
include h5bp/tls/certificate_files.conf;
|
||||
include h5bp/tls/policy_strict.conf;
|
||||
|
||||
# Path for static files
|
||||
root /home/<?=$this->e($user)?>/<?=$this->e($domain)?>;
|
||||
|
||||
# Custom error pages
|
||||
include h5bp/errors/custom_errors.conf;
|
||||
|
||||
# Include the basic h5bp config set
|
||||
include h5bp/basic.conf;
|
||||
|
||||
access_log /var/log/nginx/<?=$this->e($domain)?>-access.log;
|
||||
error_log /var/log/nginx/<?=$this->e($domain)?>-error.log error;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php-fpm-<?=$this->e($user)?>.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue