Update nginx.conf

This commit is contained in:
jmal 2023-06-28 14:31:30 +08:00
parent aaf755fb8f
commit d08d006977

View File

@ -42,31 +42,31 @@ http {
server_name localhost; server_name localhost;
location = / { location = / {
proxy_pass http://jmalcloud:8088/articles; proxy_pass $API_BASE_URL/articles;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr; proxy_set_header X-real-ip $remote_addr;
} }
location /api { location /api {
proxy_pass http://jmalcloud:8088; proxy_pass $API_BASE_URL;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr; proxy_set_header X-real-ip $remote_addr;
} }
location /articles/articles { location /articles/articles {
proxy_pass http://jmalcloud:8088/articles; proxy_pass $API_BASE_URL/articles;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr; proxy_set_header X-real-ip $remote_addr;
} }
location /articles { location /articles {
proxy_pass http://jmalcloud:8088/articles; proxy_pass $API_BASE_URL/articles;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr; proxy_set_header X-real-ip $remote_addr;
} }
location / { location / {
proxy_pass http://jmalcloud:8088/articles/; proxy_pass $API_BASE_URL/articles/;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr; proxy_set_header X-real-ip $remote_addr;
} }