Skip to content

Commit

Permalink
switchable nginx accesslog for turkey (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming authored Nov 28, 2022
1 parent cc03717 commit 9fe7af7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/docker/nginx.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server {
listen 8080 ssl;
ssl_certificate /ssl/cert;
ssl_certificate_key /ssl/key;
access_log off;
location / {
root /www;
autoindex off;
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ for f in /www/spoke/pages/*.html; do
[[ $var == $prefix* ]] && sed -i "s/$anchor/ <meta name=\"env:${var#$prefix}\" content=\"${!var//\//\\\/}\"\/> $anchor/" $f;
done
done

if [ "${access_log}" = "enabled" ]; then sed -i "s/access_log off;//g" /etc/nginx/conf.d/default.conf; fi

nginx -g "daemon off;"

0 comments on commit 9fe7af7

Please sign in to comment.