Skip to content

Commit b9d6202

Browse files
author
Andrew Welch
committed
Merge branch 'release/1.0.30'
2 parents b77d835 + 98d31f1 commit b9d6202

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Nginx-Craft Changelog
22

3+
## 1.0.30 - 2020.11.05
4+
### Added
5+
* Added support for (Forge Templates](https://forge.laravel.com/docs/1.0/servers/nginx-templates.html) via `forge-templates/NginxTemplate.conf`
6+
37
## 1.0.29 - 2020.10.21
48
### Changed
59
* Fix multi-site requests missing query params

forge-example/NginxConfiguration.conf renamed to forge-templates/NginxTemplate.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# FORGE CONFIG (DO NOT REMOVE!)
2-
include forge-conf/SOMEDOMAIN.com/before/*;
2+
include forge-conf/{{ SITE }}/before/*;
33

44
# Bots to ban via user agent
55
map $http_user_agent $limit_bots {
@@ -13,9 +13,9 @@ server {
1313
listen [::]:443 ssl http2;
1414

1515
# General virtual host settings
16-
server_name SOMEDOMAIN.com;
16+
server_name {{ SITE }};
1717
server_tokens off;
18-
root /home/forge/SOMEDOMAIN.com/public;
18+
root {{ PATH }};
1919
index index.html index.htm index.php;
2020
charset utf-8;
2121

@@ -55,13 +55,13 @@ server {
5555

5656
# Access and error logging
5757
access_log off;
58-
error_log /var/log/nginx/SOMEDOMAIN.com-error.log error;
58+
error_log /var/log/nginx/{{ SITE }}-error.log error;
5959
# If you want error logging to go to SYSLOG (for services like Papertrailapp.com), uncomment the following:
6060
#error_log syslog:server=unix:/dev/log,facility=local7,tag=nginx,severity=error;
6161

6262
# FORGE SSL (DO NOT REMOVE!)
63-
ssl_certificate /etc/nginx/ssl/SOMEDOMAIN.com/XXXXXX/server.crt;
64-
ssl_certificate_key /etc/nginx/ssl/SOMEDOMAIN.com/XXXXXX/server.key;
63+
ssl_certificate /etc/nginx/ssl/{{ SITE }}/XXXXXX/server.crt;
64+
ssl_certificate_key /etc/nginx/ssl/{{ SITE }}/XXXXXX/server.key;
6565

6666
# SSL/TLS configuration, with TLSv1.0 disabled because it is insecure; note that IE 8, 9 & 10 support
6767
# TLSv1.1, but it's not enabled by default clients using those browsers will not be able to connect
@@ -77,7 +77,7 @@ server {
7777
ssl_trusted_certificate /etc/nginx/ssl/lets-encrypt-x3-cross-signed.pem;
7878

7979
# FORGE CONFIG (DO NOT REMOVE!)
80-
include forge-conf/SOMEDOMAIN.com/server/*;
80+
include forge-conf/{{ SITE }}/server/*;
8181

8282
# Load configuration files from nginx-partials
8383
include /etc/nginx/nginx-partials/*.conf;
@@ -126,7 +126,7 @@ server {
126126
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
127127
fastcgi_param DOCUMENT_ROOT $realpath_root;
128128
fastcgi_param HTTP_PROXY "";
129-
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
129+
fastcgi_param HTTP_HOST {{ SITE }};
130130

131131
# Don't allow browser caching of dynamically generated content
132132
add_header Last-Modified $date_gmt;
@@ -156,4 +156,4 @@ server {
156156
}
157157

158158
# FORGE CONFIG (DO NOT REMOVE!)
159-
include forge-conf/SOMEDOMAIN.com/after/*;
159+
include forge-conf/{{ SITE }}/after/*;

0 commit comments

Comments
 (0)