Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
8df70959
Commit
8df70959
authored
Sep 30, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_nginx.sh: disable cache support
parent
b9c982b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
update_nginx.sh
vz/azbyka/update_nginx.sh
+8
-3
No files found.
vz/azbyka/update_nginx.sh
View file @
8df70959
...
...
@@ -43,7 +43,7 @@ cat <<EOF
}
location = /
$NAME
{
return 301 /
$NAME
/
$is_args
$args
;
return 301 /
$NAME
/
\
$is_args
\
$args
;
}
location /
$NAME
/ {
...
...
@@ -60,12 +60,17 @@ cat <<EOF
proxy_pass
$UPSTREAM
;
include include/trans-proxy.conf;
EOF
if
[
"
$NGINX_disable_cache
"
!=
1
]
;
then
cat
<<
EOF
# rewrite to cache if allowed
include include/check-skip-cache.inc;
if (\
$skip_cache
= 0) {
return
$ECODE
;
}
EOF
fi
cat
<<
EOF
access_log /var/log/nginx/
$ACONF
-access.log logdetail;
error_log /var/log/nginx/
$ACONF
-error.log;
...
...
@@ -101,6 +106,6 @@ if [ "$NGINX_disable_static_stub" ] ; then
sed
-i
-e
"s|
\(
.*static-stub.*
\)
|#
\1
|"
$NGINXSUBDIR
/
$NAME
.conf
fi
if
!
grep
-q
$UPSTREAMNAME
/etc/nginx/httpconf-enabled.d/upstream_
$ACONF
.conf
;
then
if
!
grep
-q
$UPSTREAMNAME
/etc/nginx/httpconf-enabled.d/upstream_
$ACONF
.conf
2>/dev/null
;
then
print_upstream_conf
>
/etc/nginx/httpconf-enabled.d/upstream_
$ACONF
.conf
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment