Skip to content

Commit

Permalink
Merge pull request #9 from linuxserver/root-403
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus authored Jun 1, 2024
2 parents b016cb5 + 743514b commit fb0dad1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/templates/default_nopost.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ server {
location ~* ^(/v[\d\.]+)?/tasks {limit_except GET HEAD {deny all;}if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/version {limit_except GET HEAD {deny all;}if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/volumes {limit_except GET HEAD {deny all;}if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location / {return 403;}

}
1 change: 1 addition & 0 deletions root/templates/default_nopost_ipv4.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ server {
location ~* ^(/v[\d\.]+)?/tasks {limit_except GET HEAD {deny all;}if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/version {limit_except GET HEAD {deny all;}if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/volumes {limit_except GET HEAD {deny all;}if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location / {return 403;}

}
1 change: 1 addition & 0 deletions root/templates/default_post.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ server {
location ~* ^(/v[\d\.]+)?/tasks {if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/version {if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/volumes {if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location / {return 403;}

}
1 change: 1 addition & 0 deletions root/templates/default_post_ipv4.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ server {
location ~* ^(/v[\d\.]+)?/tasks {if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/version {if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location ~* ^(/v[\d\.]+)?/volumes {if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
location / {return 403;}

}

0 comments on commit fb0dad1

Please sign in to comment.