https://github.com/py7hon/njs-proxy
Nginx Proxy with Javascript and custom cookies
https://github.com/py7hon/njs-proxy
Last synced: 7 months ago
JSON representation
Nginx Proxy with Javascript and custom cookies
- Host: GitHub
- URL: https://github.com/py7hon/njs-proxy
- Owner: py7hon
- License: mit
- Created: 2023-12-11T05:32:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T14:59:30.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T07:57:04.948Z (11 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.txt
- License: LICENSE
Awesome Lists containing this project
README
Nginx Proxy with Javascript and custom cookies
Support bypassing cloudflare WAF
Using :
make sure the njs module is installed you can read the documentation for install https://docs.nginx.com/nginx/admin-guide/dynamic-modules/nginscript/
copy nginx.conf to /etc/nginx
copy proxy.js to /etc/nginx/njs
open nginx.conf and edit line 11 with your domain
open proxy.js and edit line 12 and 15 with the target url and your domain
get your cookies txt with curl and edit proxy.js line 3 with your cookies
restart nginx