Files
awesm/dotfiles/nginx_mod.conf
2024-04-24 01:07:52 +02:00

21 lines
301 B
Plaintext
Executable File

map $http_user_agent $term {
"~*curl*" 1;
"~*wget*" 1;
default 0;
}
map $term $pretty {
0 "pretty";
default "";
}
map $term $root {
1 /var/www/awesm/terminal;
default /var/www/awesm/html;
}
map $http_user_agent $autoindex_type {
"~*curl*" jsonp;
default html;
}