Skip to content

Instantly share code, notes, and snippets.

@mikezaccardo
Created October 5, 2015 21:03
Show Gist options
  • Save mikezaccardo/2aa6d5ce239a6f4ced02 to your computer and use it in GitHub Desktop.
Save mikezaccardo/2aa6d5ce239a6f4ced02 to your computer and use it in GitHub Desktop.
Artifactory nginx Template
events {
worker_connections 768;
# multi_accept on;
}
http {
upstream artifactory {
ip_hash;
server SERVER_IP_HERE:8081;
}
server {
listen 80;
server_name SERVER_NAME_HERE;
rewrite ^/$ http://$host/artifactory/webapp/login.html;
location / {
proxy_pass http://artifactory;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment