add mod file for nginx

This commit is contained in:
Jonas Zeunert
2024-04-24 01:07:52 +02:00
parent 3b253fb978
commit e33a6bb9a3

20
dotfiles/nginx_mod.conf Executable file
View File

@@ -0,0 +1,20 @@
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;
}