We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46edc12 commit 7db01ddCopy full SHA for 7db01dd
frontend/nginx.conf
@@ -5,6 +5,15 @@ server {
5
root /usr/share/nginx/html;
6
index index.html;
7
8
+ location /api/ {
9
+ proxy_pass http://127.0.0.1:8080;
10
+ proxy_http_version 1.1;
11
+ proxy_set_header Host $host;
12
+ proxy_set_header X-Real-IP $remote_addr;
13
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14
+ proxy_set_header X-Forwarded-Proto $scheme;
15
+ }
16
+
17
location / {
18
try_files $uri $uri/ /index.html;
19
}
0 commit comments