Skip to content

Instantly share code, notes, and snippets.

@xkou
Created March 11, 2025 03:34
Show Gist options
  • Save xkou/d4ba7c8fdb165f19f706688caf02cf8b to your computer and use it in GitHub Desktop.
Save xkou/d4ba7c8fdb165f19f706688caf02cf8b to your computer and use it in GitHub Desktop.
nginx conf for cocos update cdn
server {
listen 80;
server_name res.furryloli.com;
#charset koi8-r;
error_log /var/log/host.access.log ;
root /root/cdn;
location / {
index index.html index.htm;
}
location ~* ^/\w+/[^\/]*\.manifest {
proxy_pass http://127.0.0.1:8840;
proxy_set_header Host $host;
proxy_set_header LocalIP $remote_addr;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment