orztv
commited on
Commit
·
9f1c0bf
1
Parent(s):
e412af3
update
Browse files- Dockerfile +2 -2
- nginx.conf +4 -4
Dockerfile
CHANGED
@@ -16,8 +16,8 @@ RUN apt-get update && apt-get install -y nginx
|
|
16 |
COPY nginx.conf /etc/nginx/nginx.conf
|
17 |
|
18 |
# 创建日志目录并设置权限
|
19 |
-
RUN mkdir -p /var/log/nginx /var/lib/nginx && \
|
20 |
-
chown -R pn:pn /var/log/nginx /var/lib/nginx
|
21 |
|
22 |
# 暴露端口
|
23 |
EXPOSE 7860
|
|
|
16 |
COPY nginx.conf /etc/nginx/nginx.conf
|
17 |
|
18 |
# 创建日志目录并设置权限
|
19 |
+
RUN mkdir -p /var/log/nginx /var/lib/nginx /tmp/client_temp /tmp/proxy_temp_path /tmp/fastcgi_temp /tmp/uwsgi_temp /tmp/scgi_temp && \
|
20 |
+
chown -R pn:pn /var/log/nginx /var/lib/nginx /tmp/client_temp /tmp/proxy_temp_path /tmp/fastcgi_temp /tmp/uwsgi_temp /tmp/scgi_temp
|
21 |
|
22 |
# 暴露端口
|
23 |
EXPOSE 7860
|
nginx.conf
CHANGED
@@ -22,14 +22,14 @@ http {
|
|
22 |
server {
|
23 |
listen 7860;
|
24 |
|
25 |
-
location /flask {
|
26 |
-
proxy_pass http://127.0.0.1:6000
|
27 |
proxy_set_header Host $host;
|
28 |
proxy_set_header X-Real-IP $remote_addr;
|
29 |
}
|
30 |
|
31 |
-
location /node {
|
32 |
-
proxy_pass http://127.0.0.1:7000
|
33 |
proxy_set_header Host $host;
|
34 |
proxy_set_header X-Real-IP $remote_addr;
|
35 |
}
|
|
|
22 |
server {
|
23 |
listen 7860;
|
24 |
|
25 |
+
location /flask/ {
|
26 |
+
proxy_pass http://127.0.0.1:6000/;
|
27 |
proxy_set_header Host $host;
|
28 |
proxy_set_header X-Real-IP $remote_addr;
|
29 |
}
|
30 |
|
31 |
+
location /node/ {
|
32 |
+
proxy_pass http://127.0.0.1:7000/;
|
33 |
proxy_set_header Host $host;
|
34 |
proxy_set_header X-Real-IP $remote_addr;
|
35 |
}
|