Skip to content

Instantly share code, notes, and snippets.

@HyCraftHD
Last active July 3, 2018 01:22
Show Gist options
  • Save HyCraftHD/ab5e24a33a257fbb3b062d2d426a07b7 to your computer and use it in GitHub Desktop.
Save HyCraftHD/ab5e24a33a257fbb3b062d2d426a07b7 to your computer and use it in GitHub Desktop.
Simple Mavenserver
#Config for repo
server {
include snippets/base.cfg; # Basic SSL and listening handling
server_name repo.domain.name;
root /var/www/repo/;
autoindex on;
location / {
dav_methods PUT;
create_full_put_path on;
satisfy any;
limit_except GET HEAD {
auth_basic "Repository";
auth_basic_user_file /etc/nginx/.htpasswd;
}
try_files $uri $uri/ =404;
}
client_body_buffer_size 10M;
client_max_body_size 10M;
access_log /var/log/nginx/access-repo.log;
error_log /var/log/nginx/error-repo.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment