new templates
This commit is contained in:
22
templates/nginx.proxy.site
Normal file
22
templates/nginx.proxy.site
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
server {
|
||||||
|
set $forward_scheme <<PROXY_SCHEME>>;
|
||||||
|
set $server "<<PROXY_IP>>";
|
||||||
|
set $port <<PROXY_PORT>>;
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl http2;
|
||||||
|
|
||||||
|
server_name <<HOSTNAME>>;
|
||||||
|
|
||||||
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||||
|
include conf.d/include/ssl-ciphers.conf;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/<<HOSTNAME>>/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/<<HOSTNAME>>/privkey.pem;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/proxy-<<HOSTNAME>>.log proxy;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include conf.d/include/force-ssl.conf;
|
||||||
|
include conf.d/include/proxy.conf;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,21 +1,22 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 proxy_protocol;
|
listen 80;
|
||||||
|
|
||||||
server_name www.schroedercity.com;
|
server_name <<HOSTNAME>>;
|
||||||
set $base /var/www/SchroederCity;
|
set $base <<HOSTNAME>>;
|
||||||
root $base/public_html;
|
root $base/public_html;
|
||||||
|
|
||||||
access_log /var/log/nginx/www.schroedercity.com-access.log;
|
access_log /var/log/nginx/<<HOSTNAME>>-access.log;
|
||||||
error_log /var/log/nginx/www.schroedercity.com-error.log warn;
|
error_log /var/log/nginx/<<HOSTNAME>>-error.log warn;
|
||||||
|
|
||||||
index index.php;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
include conf.d/include/php_fastcgi.conf;
|
include conf.d/include/php_fastcgi.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 proxy_protocol;
|
listen 80;
|
||||||
listen 443 ssl http2 proxy_protocol;
|
listen 443 ssl http2;
|
||||||
|
|
||||||
server_name www.schroedercity.com;
|
server_name <<HOSTNAME>>;
|
||||||
set $base /var/www/SchroederCity;
|
set $base <<HOSTNAME>>;
|
||||||
root $base/public_html;
|
root $base/public_html;
|
||||||
|
|
||||||
access_log /var/log/nginx/www.schroedercity.com-access.log;
|
access_log /var/log/nginx/<<HOSTNAME>>-access.log;
|
||||||
error_log /var/log/nginx/www.schroedercity.com-error.log warn;
|
error_log /var/log/nginx/<<HOSTNAME>>-error.log warn;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/www.schroedercity.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/<<HOSTNAME>>/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/www.schroedercity.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/<<HOSTNAME>>/privkey.pem;
|
||||||
include conf.d/include/ssl-ciphers.conf;
|
include conf.d/include/ssl-ciphers.conf;
|
||||||
|
|
||||||
index index.php;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
@@ -21,7 +21,8 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
include conf.d/include/php_fastcgi.conf;
|
include conf.d/include/php_fastcgi.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user