You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
504 B
19 lines
504 B
server { |
|
listen 80; |
|
server_name _; |
|
root /usr/share/nginx/html; |
|
index index.html; |
|
location / { |
|
try_files $uri $uri/ /index.html; |
|
} |
|
client_max_body_size 10m; |
|
location /api/ { |
|
proxy_pass http://testing-backend:3001; |
|
proxy_http_version 1.1; |
|
proxy_set_header Host $host; |
|
proxy_set_header X-Real-IP $remote_addr; |
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
proxy_set_header X-Forwarded-Proto $scheme; |
|
proxy_set_header Cookie $http_cookie; |
|
} |
|
}
|
|
|