Created
September 4, 2012 00:28
-
-
Save fedesilva/3615270 to your computer and use it in GitHub Desktop.
Artifactory behind nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream artifacts { | |
| server 127.0.0.1:8081 fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| root /var/www; | |
| server_name artifacts.inconcert artifacts; | |
| access_log /var/log/nginx/artifacts_access.log; | |
| error_log /var/log/nginx/artifacts_error.log; | |
| client_max_body_size 5m; | |
| location / { | |
| rewrite ^/(.*)$ http://artifacts.inconcert/artifactory? break; | |
| } | |
| location /artifactory/ { | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_redirect off; | |
| proxy_pass http://artifacts/artifactory/; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated: client_max_body_size para poder realmente subir jars :D