Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pjbriggs/fd092c9f90496b068ae4 to your computer and use it in GitHub Desktop.
Save pjbriggs/fd092c9f90496b068ae4 to your computer and use it in GitHub Desktop.
Fragment of nginx conf for exposing Galaxy reports including authentication
...
location ^~ /reports/ {
proxy_pass http://reports;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/galaxy-reports.htpasswd;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment