From 9c73bdbdbf4e3266e418edc23fb68adb609bfa2a Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Tue, 6 Aug 2024 09:27:47 +0800 Subject: [PATCH] Release: nginx allow & deny rules --- .github/workflows/build.yml | 2 +- config.json | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f66eb76e564..7ba6ab3d2de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,7 +110,7 @@ jobs: done - name: Remove some files to avoid publishing to GitHub release - run: rm -rf ./output/*.{gz,zip} ./output/{clash,dat,srs,surge,text} + run: rm -rf ./output/*.{gz,zip} ./output/{clash,dat,nginx,srs,surge,text} - name: Upload files to GitHub release uses: svenstaro/upload-release-action@v2 diff --git a/config.json b/config.json index 27d2ccf7334..ea79f1644f0 100644 --- a/config.json +++ b/config.json @@ -187,6 +187,26 @@ "type": "text", "action": "output" }, + { + "type": "text", + "action": "output", + "args": { + "outputDir": "./output/nginx/allow", + "outputExtension": ".conf", + "addPrefixInLine": "allow ", + "addSuffixInLine": ";" + } + }, + { + "type": "text", + "action": "output", + "args": { + "outputDir": "./output/nginx/deny", + "outputExtension": ".conf", + "addPrefixInLine": "deny ", + "addSuffixInLine": ";" + } + }, { "type": "clashRuleSetClassical", "action": "output"