文件下载共 1 个下载地址
蓝奏云点击下载
# 禁止访问隐藏目录(.git/)和隐藏文件(.file)和遍历目录(../)
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location / {
root /home/poetize/poetize-ui/; #前端路径,注意域名
index index.html;
try_files $uri $uri/ /index.html;
}
location /im {
alias /home/poetize/poetize-im-ui/; #这里聊天室路径,注意域名
index index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8081;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /socket {
proxy_pass http://127.0.0.1:9324;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
}
location /static/ {
alias /home/poetize/file/;
autoindex off;
valid_referers 192.168.6.132;
if ($invalid_referer) {
#return 403;
}
}
}


请登录后发表评论
注册
停留在世界边缘,与之惜别