Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
4f2c62b9
Commit
4f2c62b9
authored
Dec 28, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui日志问题
parent
9d7fb0ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
docker-entrypoint.sh
templates/lua-ui/docker-entrypoint.sh
+10
-1
nginx.conf
templates/lua-ui/nginx.conf
+3
-3
No files found.
templates/lua-ui/docker-entrypoint.sh
View file @
4f2c62b9
...
...
@@ -33,6 +33,15 @@ then
sed
-i
"s/SYSTEM_NAME/
${
SYSTEM_NAME
}
/"
$default_conf_file
fi
echo
"mkdir -p /var/log/nginx"
mkdir
-p
/var/log/nginx
echo
"touch /var/log/nginx/error.log"
touch
/var/log/nginx/error.log
echo
"touch /var/log/nginx/access.log"
touch
/var/log/nginx/access.log
echo
"/usr/bin/openresty -g 'daemon off;'"
nohup
/usr/bin/openresty
-g
'daemon off;'
&
...
...
@@ -40,4 +49,4 @@ echo "node /home/qg-xterm/demo/app.js"
nohup
node /home/qg-xterm/demo/app.js &
echo
"frontail logs/*.log -d -n 1000"
frontail /usr/local/openresty/nginx/logs/
*
log
-n
1000
\ No newline at end of file
frontail /var/log/nginx/
*
log
-n
1000
\ No newline at end of file
templates/lua-ui/nginx.conf
View file @
4f2c62b9
...
...
@@ -12,9 +12,9 @@ http {
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
$http_x_forwarded_for
'
'"
$upstream_addr
"
"
$upstream_status
"
"
$upstream_response_time
"
"
$request_time
"
"
$http_cookie
"'
;
access_log
/usr/local/openresty/nginx/logs/access.log
;
error_log
/usr/local/openresty/nginx/logs/error
.log
;
error_log
/var/log/nginx/error.log
warn
;
access_log
/var/log/nginx/access
.log
;
server_names_hash_bucket_size
64
;
sendfile
on
;
...
...
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