fix indentation
This commit is contained in:
@@ -637,20 +637,21 @@ class WOStackController(CementBaseController):
|
|||||||
" server 127.0.0.1:6379;\n"
|
" server 127.0.0.1:6379;\n"
|
||||||
" keepalive 10;\n}\n")
|
" keepalive 10;\n}\n")
|
||||||
|
|
||||||
if (os.path.isfile("/etc/nginx/nginx.conf") and
|
if os.path.isfile("/etc/nginx/nginx.conf"):
|
||||||
not os.path.isfile("/etc/nginx/conf.d/redis.conf")):
|
if not os.path.isfile("/etc/nginx/conf.d/redis.conf"):
|
||||||
with open("/etc/nginx/conf.d/redis.conf", "a") as
|
with open("/etc/nginx/conf.d/redis.conf",
|
||||||
redis_file:
|
"a") as redis_file:
|
||||||
redis_file.write("# Log format Settings\n"
|
redis_file.write("# Log format Settings\n"
|
||||||
"log_format rt_cache_redis "
|
"log_format rt_cache_redis "
|
||||||
"'$remote_addr "
|
"'$remote_addr "
|
||||||
"$upstream_response_time "
|
"$upstream_response_time "
|
||||||
"$srcache_fetch_status [$time_local]"
|
"$srcache_fetch_status "
|
||||||
" '\n '$http_host"
|
"[$time_local]"
|
||||||
" \"$request\" "
|
" '\n '$http_host"
|
||||||
"$status $body_bytes_sent '\n"
|
" \"$request\" "
|
||||||
"'\"$http_referer\" "
|
"$status $body_bytes_sent '\n"
|
||||||
"\"$http_user_agent\"';\n")
|
"'\"$http_referer\" "
|
||||||
|
"\"$http_user_agent\"';\n")
|
||||||
|
|
||||||
if (WOVariables.wo_platform_distro == 'ubuntu'):
|
if (WOVariables.wo_platform_distro == 'ubuntu'):
|
||||||
# Create log directories
|
# Create log directories
|
||||||
|
|||||||
Reference in New Issue
Block a user