diff --git a/nginx.conf b/nginx.conf index 666defb..770b003 100644 --- a/nginx.conf +++ b/nginx.conf @@ -89,6 +89,30 @@ http { index index.html index.htm; } + location = /blog/ { + proxy_pass http://jmalcloud:8088/articles; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/api/ { + proxy_pass http://jmalcloud:8088/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/articles { + proxy_pass http://jmalcloud:8088/articles/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/ { + proxy_pass http://jmalcloud:8088/articles/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + location /api/ { proxy_pass http://jmalcloud:8088/; proxy_http_version 1.1;