diff --git a/packages/nginx/etc/nginx/templates/location.d/80-auth.conf.template b/packages/nginx/etc/nginx/templates/location.d/50-auth.conf.template similarity index 88% rename from packages/nginx/etc/nginx/templates/location.d/80-auth.conf.template rename to packages/nginx/etc/nginx/templates/location.d/50-auth.conf.template index 4c7d3c34..cd1f40f3 100644 --- a/packages/nginx/etc/nginx/templates/location.d/80-auth.conf.template +++ b/packages/nginx/etc/nginx/templates/location.d/50-auth.conf.template @@ -11,6 +11,6 @@ if ( $http_authorization ~ ^Alwatr\s+([A-z0-9_=-]+):([A-z0-9_=-]+)$ ) { # if ($request_method = OPTIONS) { # break; # } -# if ($userLocation = 0) { -# return 403; -# } +if ($userLocation = 0) { + return 400; +} diff --git a/packages/nginx/etc/nginx/templates/location.d/81-rewrite-api-prefix.conf.template b/packages/nginx/etc/nginx/templates/location.d/51-rewrite-api-prefix.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/81-rewrite-api-prefix.conf.template rename to packages/nginx/etc/nginx/templates/location.d/51-rewrite-api-prefix.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/82-home.conf.template b/packages/nginx/etc/nginx/templates/location.d/52-home.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/82-home.conf.template rename to packages/nginx/etc/nginx/templates/location.d/52-home.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/83-debug.conf.template b/packages/nginx/etc/nginx/templates/location.d/53-debug.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/83-debug.conf.template rename to packages/nginx/etc/nginx/templates/location.d/53-debug.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/90-region-secret.conf.template b/packages/nginx/etc/nginx/templates/location.d/54-region-secret.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/90-region-secret.conf.template rename to packages/nginx/etc/nginx/templates/location.d/54-region-secret.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/91-region-public.conf.template b/packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/91-region-public.conf.template rename to packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/92-region-authenticated.conf.template b/packages/nginx/etc/nginx/templates/location.d/56-region-authenticated.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/92-region-authenticated.conf.template rename to packages/nginx/etc/nginx/templates/location.d/56-region-authenticated.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/93-region-managers.conf.template b/packages/nginx/etc/nginx/templates/location.d/57-region-managers.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/93-region-managers.conf.template rename to packages/nginx/etc/nginx/templates/location.d/57-region-managers.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/94-region-per-user.conf.template b/packages/nginx/etc/nginx/templates/location.d/58-region-per-user.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/94-region-per-user.conf.template rename to packages/nginx/etc/nginx/templates/location.d/58-region-per-user.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/95-region-per-owner.conf.template b/packages/nginx/etc/nginx/templates/location.d/59-region-per-owner.conf.template similarity index 100% rename from packages/nginx/etc/nginx/templates/location.d/95-region-per-owner.conf.template rename to packages/nginx/etc/nginx/templates/location.d/59-region-per-owner.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/99-deny-other.conf.template b/packages/nginx/etc/nginx/templates/location.d/root.d/99-deny-other.conf.template similarity index 71% rename from packages/nginx/etc/nginx/templates/location.d/99-deny-other.conf.template rename to packages/nginx/etc/nginx/templates/location.d/root.d/99-deny-other.conf.template index 2ba71f2f..4e189661 100644 --- a/packages/nginx/etc/nginx/templates/location.d/99-deny-other.conf.template +++ b/packages/nginx/etc/nginx/templates/location.d/root.d/99-deny-other.conf.template @@ -1,6 +1,4 @@ # Deny all unknown location # this file must be last in the include list -location / { - return 403; -} +return 403;