nginx/maven.msfjarvis.dev: setup the actual maven repository
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
bc5cd70a6f
commit
43bbf22823
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue