You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
796 B
Plaintext
26 lines
796 B
Plaintext
server {
|
|
listen 80;
|
|
server_name cacserver;
|
|
# 安全头配置
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-XSS-Protection "1; mode=block" always;
|
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'; frame-ancestors 'none';" always;
|
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
location / {
|
|
root /home/xydl/ncac/static;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
location /cac-api/ {
|
|
proxy_pass http://127.0.0.1:8099/;
|
|
}
|
|
|
|
location /data {
|
|
alias /home/xydl/ncac/data;
|
|
autoindex on;
|
|
}
|
|
}
|