diff --git a/nginx/maven.msfjarvis.dev b/nginx/maven.msfjarvis.dev index a1bd2b8..07eef46 100644 --- a/nginx/maven.msfjarvis.dev +++ b/nginx/maven.msfjarvis.dev @@ -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;