feat: add docker compose full deploy
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 7614;
|
||||
|
||||
# 前端静态文件
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# 后端 API 转发
|
||||
location /api {
|
||||
proxy_pass http://backend:5182;
|
||||
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_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stream {
|
||||
server {
|
||||
listen 25;
|
||||
proxy_pass backend:25;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user