Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
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
何远江
topsun-baoshen-excel
Commits
38dc2ca5
Commit
38dc2ca5
authored
Jun 04, 2025
by
tanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
6055c8d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Dockerfile
Dockerfile
+9
-9
DockerfileDisplay
DockerfileDisplay
+1
-1
No files found.
Dockerfile
View file @
38dc2ca5
FROM
nginx
FROM
nginx
ENV
NGINX_PROXY_PASS=http://192.168.3.151:10000/
MAINTAINER
tanghao@163.com
MAINTAINER
tanghao@163.com
VOLUME
/tmp
VOLUME
/tmp
ENV
LANG en_US.UTF-8
ENV
LANG en_US.UTF-8
RUN
mkdir
-p
/var/www
\
RUN
echo
"server {
\
&&
mkdir
-p
/var/www/html
ADD
./dist/ /var/www/html/
EXPOSE
80
EXPOSE
443
CMD
["echo","'server { \
listen 80;
\
listen 80;
\
client_max_body_size 50M;
\
client_max_body_size 50M;
\
location /api/ {
\
location /api/ {
\
proxy_pass
$NGINX_PROXY_PASS
; \
proxy_pass
http://192.168.3.151:10000/
;
\
proxy_redirect off;
\
proxy_redirect off;
\
proxy_set_header Host topsun-excel-order;
\
proxy_set_header Host topsun-excel-order;
\
proxy_set_header X-Real-IP
\$
remote_addr;
\
proxy_set_header X-Real-IP
\$
remote_addr;
\
...
@@ -28,4 +22,10 @@ CMD ["echo","'server { \
...
@@ -28,4 +22,10 @@ CMD ["echo","'server { \
}
\
}
\
}
\
}
\
access_log /var/log/nginx/access.log ;
\
access_log /var/log/nginx/access.log ;
\
} ' > /etc/nginx/conf.d/default.conf"]
} "
>
/etc/nginx/conf.d/default.conf
\
&&
mkdir
-p
/var/www
\
&&
mkdir
-p
/var/www/html
ADD
./dist/ /var/www/html/
EXPOSE
80
EXPOSE
443
DockerfileDisplay
View file @
38dc2ca5
...
@@ -6,7 +6,7 @@ RUN echo "server { \
...
@@ -6,7 +6,7 @@ RUN echo "server { \
listen 80; \
listen 80; \
client_max_body_size 50M; \
client_max_body_size 50M; \
location /api/ { \
location /api/ { \
proxy_pass http://192.168.3.15/; \
proxy_pass http://192.168.3.15
1:10010
/; \
proxy_redirect off; \
proxy_redirect off; \
proxy_set_header Host topsun-excel-order; \
proxy_set_header Host topsun-excel-order; \
proxy_set_header X-Real-IP \$remote_addr; \
proxy_set_header X-Real-IP \$remote_addr; \
...
...
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