Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttttmr committed Sep 24, 2024
1 parent 7441e82 commit a1aadee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-test-cont.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
--name rsshub \
-e NODE_ENV=dev \
-e LOGGER_LEVEL=debug \
-e ALLOW_CIDR='127.0.0.1/32'
-e ALLOW_USER_HOTLINK_TEMPLATE=true \
-p 1200:1200 \
rsshub:latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/issue-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
run: pnpm start &
env:
ALLOW_USER_HOTLINK_TEMPLATE: true
ALLOW_CIDR: '127.0.0.1/32'
NODE_ENV: dev
LOGGER_LEVEL: debug

Expand Down
2 changes: 2 additions & 0 deletions lib/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Parser from 'rss-parser';
const parser = new Parser();
import { config } from '@/config';

process.env.ALLOW_CIDR = '127.0.0.1/32';

const routes = {
'/test/:id': '/test/1',
};
Expand Down

0 comments on commit a1aadee

Please sign in to comment.