nginx-server-from-git/nginx.conf

26 lines
474 B
Nginx Configuration File

upstream trigger-ci {
server 127.0.0.1:8555;
}
server {
listen 80;
server_name static-server;
root /var/www/html;
error_page 404 /404.html;
location /trigger-ci.json {
proxy_pass http://trigger-ci;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /.git* {
return 404;
}
location /README* {
return 404;
}
}