update newsite
This commit is contained in:
23
templates/nginx.site
Executable file
23
templates/nginx.site
Executable file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80 proxy_protocol;
|
||||
|
||||
server_name www.schroedercity.com;
|
||||
set $base /var/www/SchroederCity;
|
||||
root $base/public_html;
|
||||
|
||||
access_log /var/log/nginx/www.schroedercity.com-access.log;
|
||||
error_log /var/log/nginx/www.schroedercity.com-error.log warn;
|
||||
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
include conf.d/include/php_fastcgi.conf;
|
||||
}
|
||||
|
||||
include conf.d/include/general.conf;
|
||||
}
|
||||
30
templates/nginx.ssl.site
Executable file
30
templates/nginx.ssl.site
Executable file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80 proxy_protocol;
|
||||
listen 443 ssl http2 proxy_protocol;
|
||||
|
||||
server_name www.schroedercity.com;
|
||||
set $base /var/www/SchroederCity;
|
||||
root $base/public_html;
|
||||
|
||||
access_log /var/log/nginx/www.schroedercity.com-access.log;
|
||||
error_log /var/log/nginx/www.schroedercity.com-error.log warn;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/www.schroedercity.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/www.schroedercity.com/privkey.pem;
|
||||
include conf.d/include/ssl-ciphers.conf;
|
||||
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
include conf.d/include/force-ssl.conf;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
include conf.d/include/php_fastcgi.conf;
|
||||
}
|
||||
|
||||
include conf.d/include/general.conf;
|
||||
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user