Use relative API path via nginx
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Proxy API requests to backend
|
||||
# Proxy all API requests to backend
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:4000/api/;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
Reference in New Issue
Block a user