Dish_Recognition/dish_server/nginx.tpweb.example.conf

23 lines
529 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 将 https://cpsb.ruimeida.cc/tpweb/ 映射到磁盘 /data/tpweb
# 若主站已有 server 块,只需把 location 合并进去。
server {
listen 80;
server_name cpsb.ruimeida.cc;
location /tpweb/ {
alias /data/tpweb/;
autoindex off;
expires 7d;
add_header Access-Control-Allow-Origin *;
}
}
# HTTPS(443)的 server 里同样需要:
# location /tpweb/ {
# alias /data/tpweb/;
# autoindex off;
# expires 7d;
# add_header Access-Control-Allow-Origin *;
# }