docker
Change-Id: Ie7c4842bbed1447bf9117b2e199f69842aa0ec75
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..4910242
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,28 @@
+server {
+ listen 80; # 代理默认端口,可改
+ server_name localhost;
+
+ root /var/www/html;
+ index index.html;
+
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+
+ # 代理 /api/v1/ 到后端服务
+ location /api/v1/ {
+ proxy_pass http://127.0.0.1:8088; # 你的后端暴露位置
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+ }
+
+ location = /favicon.ico { log_not_found off; access_log off; }
+ location = /robots.txt { log_not_found off; access_log off; allow all; }
+ location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
+ expires max;
+ log_not_found off;
+ }
+}
\ No newline at end of file