diff --git a/nginx.conf b/nginx.conf index c9ae079..7a413bc 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,16 +1,15 @@ server { listen 80; - server_name localhost; - - root /usr/share/nginx/html; - index index.html; location / { + root /usr/share/nginx/html; + index index.html; try_files $uri $uri/ /index.html; } - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control "public, immutable"; + location /api/ { + proxy_pass http://192.168.2.186:9090/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; } }