19 lines
291 B
Plaintext
19 lines
291 B
Plaintext
server {
|
|
server_name $NGINX_HOST;
|
|
root /var/www;
|
|
|
|
location ~ ^/api/doc$ {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass $APP_API_BASE/api/;
|
|
proxy_intercept_errors on;
|
|
add_header Access-Control-Allow-Origin *;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|