nginx/maven.msfjarvis.dev: setup the actual maven repository

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-09-20 16:55:55 +05:30
parent bc5cd70a6f
commit 43bbf22823
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
1 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,19 @@ server {
server_name maven.msfjarvis.dev;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# try_files $uri $uri/ =404; # IMPORTANT comment this
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access user:rw group:rw all:r;
limit_except GET HEAD OPTIONS {
auth_basic "Only pulling artifacts is supported without authentication";
auth_basic_user_file /etc/nginx/maven_auth;
}
}
root /var/www/maven.msfjarvis.dev;
ssl_certificate /etc/letsencrypt/live/msfjarvis.dev/fullchain.pem;