Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hengli
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
hengli
Commits
c3b4c7e1
Commit
c3b4c7e1
authored
Jun 06, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加mobile-dashboard
parent
bb67665c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
docker-compose-web.yml
docker-compose-web.yml
+11
-0
nginx-mobile-dashboard.conf
web-conf/nginx-mobile-dashboard.conf
+55
-0
No files found.
docker-compose-web.yml
View file @
c3b4c7e1
...
@@ -17,5 +17,16 @@ services:
...
@@ -17,5 +17,16 @@ services:
volumes
:
volumes
:
-
./web-conf/nginx.conf:/etc/nginx/nginx.conf
-
./web-conf/nginx.conf:/etc/nginx/nginx.conf
restart
:
always
restart
:
always
depends_on
:
-
htwin-dbapi
mobile-dashboard
:
image
:
47.110.145.204:8084/huansiyl/sdhl-iot/hengli-mobile-dashboard:dev
container_name
:
mobile-dashboard
ports
:
-
"
8526:80"
volumes
:
-
./web-conf/nginx-mobile-dashboard.conf:/etc/nginx/nginx.conf
restart
:
always
depends_on
:
depends_on
:
-
htwin-dbapi
-
htwin-dbapi
\ No newline at end of file
web-conf/nginx-mobile-dashboard.conf
0 → 100644
View file @
c3b4c7e1
user
nginx
;
worker_processes
1
;
error_log
/
var
/
log
/
nginx
/
error
.
log
warn
;
pid
/
var
/
run
/
nginx
.
pid
;
events
{
worker_connections
1024
;
}
http
{
include
/
etc
/
nginx
/
mime
.
types
;
default_type
application
/
octet
-
stream
;
log_format
main
'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'
;
access_log
/
var
/
log
/
nginx
/
access
.
log
main
;
sendfile
on
;
keepalive_timeout
65
;
client_max_body_size
500
m
;
server
{
listen
80
;
server_name
127
.
0
.
0
.
1
;
# compression-webpack-plugin 配置
gzip
on
;
gzip_min_length
1
k
;
gzip_comp_level
9
;
gzip_types
text
/
plain
application
/
javascript
application
/
x
-
javascript
text
/
css
application
/
xml
text
/
javascript
application
/
x
-
httpd
-
php
image
/
jpeg
image
/
gif
image
/
png
;
gzip_vary
on
;
# 配置禁用 gzip 条件,支持正则,此处表示 ie6 及以下不启用 gzip(因为ie低版本不支持)
gzip_disable
"MSIE [1-6]\."
;
location
/ {
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
try_files
$
uri
$
uri
/ /
index
.
html
;
}
# 代理配置,解决跨域问题
location
/
prod
/ {
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_pass
http
://
htwin
-
dbapi
:
8520
/;
}
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
}
}
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