From e33a6bb9a349b940ab46222841312ef06be9364c Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Wed, 24 Apr 2024 01:07:52 +0200 Subject: [PATCH] add mod file for nginx --- dotfiles/nginx_mod.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 dotfiles/nginx_mod.conf diff --git a/dotfiles/nginx_mod.conf b/dotfiles/nginx_mod.conf new file mode 100755 index 0000000..d23fd2f --- /dev/null +++ b/dotfiles/nginx_mod.conf @@ -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; +}