Initial Commit

This commit is contained in:
2018-05-11 21:25:11 +02:00
commit b2125dd4be
5 changed files with 73 additions and 0 deletions

26
default.template Normal file
View File

@ -0,0 +1,26 @@
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
error_page 418 = @pass;
recursive_error_pages on;
if ( $http_user_agent !~ 'curl' ) {
return 418;
}
root /usr/share/nginx;
try_files /script.sh =404;
}
location @pass {
proxy_pass $PROXY_PASS_HOST;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect default;
}
}