Skip to content

Commit bbd3526

Browse files
committed
Merge branch 'release/1.0.10'
2 parents 89ec3cd + d001226 commit bbd3526

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

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

3+
## 1.0.10 - 2017.09.12
4+
### Changed
5+
* Updated the config to use php7.1 by default
6+
* Added comments for the CME config
7+
38
## 1.0.9 - 2017.09.01
49
### Changed
510
* Added OCSP stapling

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following are assumptions made in this configuration:
3030
* The canonical domain is SOMEDOMAIN.com (no www.)
3131
* Nginx is version 1.9.5 or later (and thus supports http2)
3232
* Paths are standard Ubuntu, change as needed
33-
* You're using php7 via php-fpm
33+
* You're using php7.1 via php-fpm
3434
* You have `'omitScriptNameInUrls' => true,` in your `craft/general.php`
3535

3636
If any of these assumptions are invalid, make the appropriate changes.

forge-example/NginxConfiguration.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ server {
9797
location ~ [^/]\.php(/|$) {
9898
try_files $uri $uri/ /index.php?$query_string;
9999
fastcgi_split_path_info ^(.+\.php)(/.+)$;
100-
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
100+
# Change this to whatever version of php you are using
101+
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
101102
fastcgi_index index.php;
102103
include fastcgi_params;
103104
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
104105
fastcgi_param PATH_INFO $fastcgi_path_info;
105106
fastcgi_param HTTP_PROXY "";
106107

108+
# See https://github.com/nystudio107/craft-multi-environment or https://github.com/nystudio107/craft3-multi-environment
107109
fastcgi_param CRAFTENV_CRAFT_ENVIRONMENT "REPLACE_ME";
108110
fastcgi_param CRAFTENV_DB_HOST "REPLACE_ME";
109111
fastcgi_param CRAFTENV_DB_NAME "REPLACE_ME";

sites-available/somedomain.com.conf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,24 @@ server {
105105
location ~ [^/]\.php(/|$) {
106106
try_files $uri $uri/ /index.php?$query_string;
107107
fastcgi_split_path_info ^(.+\.php)(/.+)$;
108-
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
108+
# Change this to whatever version of php you are using
109+
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
109110
fastcgi_index index.php;
110111
include fastcgi_params;
111112
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
112113
fastcgi_param PATH_INFO $fastcgi_path_info;
113114
fastcgi_param HTTP_PROXY "";
114115

116+
# See https://github.com/nystudio107/craft-multi-environment or https://github.com/nystudio107/craft3-multi-environment
117+
fastcgi_param CRAFTENV_CRAFT_ENVIRONMENT "REPLACE_ME";
118+
fastcgi_param CRAFTENV_DB_HOST "REPLACE_ME";
119+
fastcgi_param CRAFTENV_DB_NAME "REPLACE_ME";
120+
fastcgi_param CRAFTENV_DB_USER "REPLACE_ME";
121+
fastcgi_param CRAFTENV_DB_PASS "REPLACE_ME";
122+
fastcgi_param CRAFTENV_SITE_URL "REPLACE_ME";
123+
fastcgi_param CRAFTENV_BASE_URL "REPLACE_ME";
124+
fastcgi_param CRAFTENV_BASE_PATH "REPLACE_ME";
125+
115126
fastcgi_intercept_errors off;
116127
fastcgi_buffer_size 16k;
117128
fastcgi_buffers 4 16k;

0 commit comments

Comments
 (0)