14 lines
531 B
Nginx Configuration File
14 lines
531 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
|
|
location /app-shared/ {
|
|
alias /usr/share/nginx/html/app-shared/;
|
|
try_files $uri $uri/ /app-shared/index.html;
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
}
|
|
} |