Robots.txt fix and changelog update
This commit is contained in:
@@ -55,4 +55,5 @@ script:
|
|||||||
- sudo wo info || sudo tail -n50 /var/log/wo/wordops.log
|
- sudo wo info || sudo tail -n50 /var/log/wo/wordops.log
|
||||||
- sudo tree -L 2 /etc/nginx
|
- sudo tree -L 2 /etc/nginx
|
||||||
- sudo cat /var/www/wpredis.net/wp-config.php
|
- sudo cat /var/www/wpredis.net/wp-config.php
|
||||||
- sudo wo update --force || sudo tail -n50 /var/log/wo/wordops.log
|
- echo "127.0.0.1 wpredis.net" | sudo tee -a /etc/hosts
|
||||||
|
- curl -sL http://wpredis.net/robots.txt
|
||||||
|
|||||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -10,15 +10,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
### v3.9.6 - [Unreleased]
|
### v3.9.6 - [Unreleased]
|
||||||
|
|
||||||
### v3.9.5.2 - 2019-06-16
|
### v3.9.5.2 - 2019-06-17
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|
||||||
- Non-interactive install/upgrade
|
- Non-interactive install/upgrade
|
||||||
|
- Argument `--force` with the command `wo update`
|
||||||
|
- Argument `-s|--silent` to perform non interactive installation
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- robots.txt location block moved from locations-wo.conf to wpcommon.php
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
||||||
- WP_CACHE_KEY_SALT set twice
|
- WP_CACHE_KEY_SALT set twice with wpredis
|
||||||
|
- WordOps version check when using `wo update`
|
||||||
|
- robots.txt file download if not created
|
||||||
|
|
||||||
### v3.9.5.1 - 2019-05-10
|
### v3.9.5.1 - 2019-05-10
|
||||||
|
|
||||||
|
|||||||
2
install
2
install
@@ -7,7 +7,7 @@
|
|||||||
# Copyright (c) 2019 - WordOps
|
# Copyright (c) 2019 - WordOps
|
||||||
# This script is licensed under M.I.T
|
# This script is licensed under M.I.T
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
# Version 3.9.5.2 - 2019-06-16
|
# Version 3.9.5.2 - 2019-06-17
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
readonly wo_version_old="2.2.3"
|
readonly wo_version_old="2.2.3"
|
||||||
readonly wo_version_new="3.9.5.2"
|
readonly wo_version_new="3.9.5.2"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class WOUpdateController(CementBaseController):
|
|||||||
def default(self):
|
def default(self):
|
||||||
filename = "woupdate" + time.strftime("%Y%m%d-%H%M%S")
|
filename = "woupdate" + time.strftime("%Y%m%d-%H%M%S")
|
||||||
WODownload.download(self, [["https://raw.githubusercontent.com/"
|
WODownload.download(self, [["https://raw.githubusercontent.com/"
|
||||||
"WordOps/WordOps/updating-configuration/install",
|
"WordOps/WordOps/master/install",
|
||||||
"/tmp/{0}".format(filename),
|
"/tmp/{0}".format(filename),
|
||||||
"update script"]])
|
"update script"]])
|
||||||
if self.app.pargs.force:
|
if self.app.pargs.force:
|
||||||
|
|||||||
@@ -6,17 +6,6 @@ location = /favicon.ico {
|
|||||||
log_not_found off;
|
log_not_found off;
|
||||||
expires max;
|
expires max;
|
||||||
}
|
}
|
||||||
location = /robots.txt {
|
|
||||||
# Some WordPress plugin gererate robots.txt file
|
|
||||||
# Refer #340 issue
|
|
||||||
try_files $uri $uri/ /index.php$is_args$args @robots;
|
|
||||||
access_log off;
|
|
||||||
log_not_found off;
|
|
||||||
}
|
|
||||||
# fallback for robots.txt with default wordpress rules
|
|
||||||
location @robots {
|
|
||||||
return 200 "User-agent: *\nDisallow: /wp-admin/\nAllow: /wp-admin/admin-ajax.php\n";
|
|
||||||
}
|
|
||||||
# Cache static files
|
# Cache static files
|
||||||
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|ttf|m4a|mp4|ttf|rss|atom|jpe?g|gif|cur|heic|png|tiff|ico|webm|mp3|aac|tgz|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp)$ {
|
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|ttf|m4a|mp4|ttf|rss|atom|jpe?g|gif|cur|heic|png|tiff|ico|webm|mp3|aac|tgz|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp)$ {
|
||||||
add_header "Access-Control-Allow-Origin" "*";
|
add_header "Access-Control-Allow-Origin" "*";
|
||||||
|
|||||||
@@ -12,6 +12,17 @@ location = /wp-config.txt {
|
|||||||
access_log off;
|
access_log off;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
location = /robots.txt {
|
||||||
|
# Some WordPress plugin gererate robots.txt file
|
||||||
|
# Refer #340 issue
|
||||||
|
try_files $uri $uri/ /index.php?$args @robots;
|
||||||
|
access_log off;
|
||||||
|
log_not_found off;
|
||||||
|
}
|
||||||
|
# fallback for robots.txt with default wordpress rules
|
||||||
|
location @robots {
|
||||||
|
return 200 "User-agent: *\nDisallow: /wp-admin/\nAllow: /wp-admin/admin-ajax.php\n";
|
||||||
|
}
|
||||||
# webp rewrite rules for jpg and png images
|
# webp rewrite rules for jpg and png images
|
||||||
# try to load alternative image.png.webp before image.png
|
# try to load alternative image.png.webp before image.png
|
||||||
location /wp-content/uploads {
|
location /wp-content/uploads {
|
||||||
|
|||||||
@@ -12,6 +12,17 @@ location = /wp-config.txt {
|
|||||||
access_log off;
|
access_log off;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
location = /robots.txt {
|
||||||
|
# Some WordPress plugin gererate robots.txt file
|
||||||
|
# Refer #340 issue
|
||||||
|
try_files $uri $uri/ /index.php?$args @robots;
|
||||||
|
access_log off;
|
||||||
|
log_not_found off;
|
||||||
|
}
|
||||||
|
# fallback for robots.txt with default wordpress rules
|
||||||
|
location @robots {
|
||||||
|
return 200 "User-agent: *\nDisallow: /wp-admin/\nAllow: /wp-admin/admin-ajax.php\n";
|
||||||
|
}
|
||||||
# webp rewrite rules for jpg and png images
|
# webp rewrite rules for jpg and png images
|
||||||
# try to load alternative image.png.webp before image.png
|
# try to load alternative image.png.webp before image.png
|
||||||
location /wp-content/uploads {
|
location /wp-content/uploads {
|
||||||
|
|||||||
Reference in New Issue
Block a user