feat:增加docker部署
This commit is contained in:
25
nginx.conf
Normal file
25
nginx.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
index index.html;
|
||||
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 500M;
|
||||
|
||||
location /study-agent/ {
|
||||
alias /usr/share/nginx/html/;
|
||||
try_files $uri $uri/ /study-agent/index.html;
|
||||
}
|
||||
|
||||
location /study-api/ {
|
||||
proxy_pass http://host.docker.internal:8001/;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user