Initial Commit
This commit is contained in:
26
default.template
Normal file
26
default.template
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user