Skip to content

Commit fb0dad1

Browse files
authored
Merge pull request #9 from linuxserver/root-403
2 parents b016cb5 + 743514b commit fb0dad1

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

root/templates/default_nopost.template

+1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ server {
5858
location ~* ^(/v[\d\.]+)?/tasks {limit_except GET HEAD {deny all;}if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5959
location ~* ^(/v[\d\.]+)?/version {limit_except GET HEAD {deny all;}if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
6060
location ~* ^(/v[\d\.]+)?/volumes {limit_except GET HEAD {deny all;}if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
61+
location / {return 403;}
6162

6263
}

root/templates/default_nopost_ipv4.template

+1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ server {
5757
location ~* ^(/v[\d\.]+)?/tasks {limit_except GET HEAD {deny all;}if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5858
location ~* ^(/v[\d\.]+)?/version {limit_except GET HEAD {deny all;}if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5959
location ~* ^(/v[\d\.]+)?/volumes {limit_except GET HEAD {deny all;}if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
60+
location / {return 403;}
6061

6162
}

root/templates/default_post.template

+1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ server {
5858
location ~* ^(/v[\d\.]+)?/tasks {if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5959
location ~* ^(/v[\d\.]+)?/version {if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
6060
location ~* ^(/v[\d\.]+)?/volumes {if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
61+
location / {return 403;}
6162

6263
}

root/templates/default_post_ipv4.template

+1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ server {
5757
location ~* ^(/v[\d\.]+)?/tasks {if ($path_tasks = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5858
location ~* ^(/v[\d\.]+)?/version {if ($path_version = 0){return 403;}proxy_pass http://unix:$dockersocket;}
5959
location ~* ^(/v[\d\.]+)?/volumes {if ($path_volumes = 0){return 403;}proxy_pass http://unix:$dockersocket;}
60+
location / {return 403;}
6061

6162
}

0 commit comments

Comments
 (0)