static_config / nginx.conf
rogerxavier's picture
Update nginx.conf
784f622 verified
raw
history blame
1.75 kB
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
server {
listen 7860;
server_name localhost;
location /jmComic.json {
alias /usr/share/nginx/html/jmComic.json; # 指定jmComic.json的路径
default_type application/json; # 设置返回类型为JSON
}
location /iizhi.json {
alias /usr/share/nginx/html/iizhi.json; # 指定jmComic.json的路径
default_type application/json; # 设置返回类型为JSON
}
location /booruSama.json {
alias /usr/share/nginx/html/booruSama.json; # 指定jmComic.json的路径
default_type application/json; # 设置返回类型为JSON
}
location /bit.apk {
alias /usr/share/nginx/html/bit.apk; # 指定 APK 文件的路径
default_type application/vnd.android.package-archive; # 设置返回类型为 APK
add_header Content-Disposition 'attachment; filename=bit.apk'; # 强制下载
}
location /buyinfo.json {
alias /usr/share/nginx/html/buyinfo.json; # 指定jmComic.json的路径
default_type application/json; # 设置返回类型为JSON
}
location /host.json {
alias /usr/share/nginx/html/host.json; # 指定路径
default_type application/json; # 设置返回类型为JSON
}
location /pay.json {
alias /usr/share/nginx/html/pay.json; # 指定路径
default_type application/json; # 设置返回类型为JSON
}
location /update.json {
alias /usr/share/nginx/html/update.json; # 指定路径
default_type application/json; # 设置返回类型为JSON
}
}
}