From 0f52f8cc5173e797bc5faba363277cc64af9724a Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sun, 14 Jan 2024 04:28:57 +0330 Subject: [PATCH] refactor(nginx): Add authentication requirement for all location BREAKING CHANGE: Add authentication requirement for all location --- .../nginx/templates/location.d/80-require-auth.conf.template | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 packages/nginx/etc/nginx/templates/location.d/80-require-auth.conf.template diff --git a/packages/nginx/etc/nginx/templates/location.d/80-require-auth.conf.template b/packages/nginx/etc/nginx/templates/location.d/80-require-auth.conf.template new file mode 100644 index 00000000..3dce8362 --- /dev/null +++ b/packages/nginx/etc/nginx/templates/location.d/80-require-auth.conf.template @@ -0,0 +1,4 @@ +if ($userLocation = 0) { + return 401; + break; +}