Skip to content

Instantly share code, notes, and snippets.

@fcicq
Created December 5, 2018 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcicq/24f51ce332ce6207f1b5d0f38dfddfdc to your computer and use it in GitHub Desktop.
Save fcicq/24f51ce332ce6207f1b5d0f38dfddfdc to your computer and use it in GitHub Desktop.
ODSAgent by nginx
error_log stderr crit;
pid /dev/null;
master_process off;
daemon off;
events{}
http{
access_log /dev/stdout;
proxy_temp_path /dev/shm/proxy;
fastcgi_temp_path /dev/shm/fcgi;
uwsgi_temp_path /dev/shm/uwsgi;
scgi_temp_path /dev/shm/scgi;
client_body_temp_path /dev/shm/client_body_temp 1 2;
server {
listen 65432 default_server;
server_tokens off;
location / {
return 404;
}
location = /disk2s0.dmg {
root /PATH;
add_header 'Server' 'ODS/1.0';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment