Skip to content

Using just NGINX to serve RPM packages, no API

marshyski edited this page Oct 7, 2014 · 1 revision

Remove the below lines out of the nginx.conf, and you just need to run the NGINX daemon via chkconfig/systemd. No need to use supervisor or gunicorn.

Remove lines:

daemon off;

location /api {
  try_files $uri @api;
}

location @api {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_redirect off;
  proxy_buffering off;
  proxy_pass http://127.0.0.1:8888;
}