nginx-config/3002-apps-static.conf

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-05-30 19:40:01 +03:00
server {
listen 3002;
server_name localhost;
set $appsRoot "/home/ijl/ijl/apps";
root $appsRoot;
location / {
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';
index index.html index.htm;
alias "$appsRoot/uds-middle/dist/";
}
2021-06-06 20:16:07 +03:00
2021-05-30 19:40:01 +03:00
location /static/ {
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';
alias "$appsRoot/";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}