Last active
July 3, 2018 01:22
-
-
Save HyCraftHD/ab5e24a33a257fbb3b062d2d426a07b7 to your computer and use it in GitHub Desktop.
Simple Mavenserver
This file contains 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
#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