This commit is contained in:
2021-05-30 19:40:01 +03:00
parent 5d1bdda693
commit 6507960a4d
4 changed files with 144 additions and 175 deletions
+28
View File
@@ -0,0 +1,28 @@
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/";
}
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;
}
}