feat:增加docker配置

This commit is contained in:
2025-09-18 16:09:49 +08:00
parent 44e6176150
commit 52c14f5f6f
23 changed files with 75 additions and 294 deletions

22
nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html;
server_name _;
location /blog/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /blog/index.html;
}
location /blog-api/ {
proxy_pass http://127.0.0.1:8082/;
}
location / {
try_files $uri $uri/ =404;
}
}