27 lines
475 B
Plaintext
27 lines
475 B
Plaintext
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;
|
|
}
|
|
}
|
|
|