Comments (5)
@emilhem & @mikaelhm - what do you guys think?
from node-unblocker.
I actually don't use redis for my proxy. I started rewriting it for a similar scenario that you describe above but the web server started saying no after I visited a few websites because of the tremendous amount of cookies being sent to the server. Also the overhead of all the cookies will slow everything down quite a lot. Instead I just let the built in session handler in connect handle saving the cookies to the session. It will erase any cookies at server restart but it doesn't matter since the server never dies for me. Our source codes are very different now though since I have user login and an admin interface where you can manage the white-list built in.
I think the idea of making the proxy more independent and modularizable is a good idea. Then you can implement user login/signup and an admin page as well. You're free to use my poorly commented source code if you want.
from node-unblocker.
Instead I just let the built in session handler in connect handle saving the cookies to the session.
Are you only running a single server process? The recommended mode is one process per CPU core (Although it's the same if you have a single-core CPU). Connect's in-memory session handler can't share data across processes which is why I went with Redis initially.
(Sorry if you get this comment twice, github is acting funky)
from node-unblocker.
Yes. I removed the multiprocess functionality. Have you actually made any performance measurements comparing multiprocess vs single process?
from node-unblocker.
This is now done in the 1.0 release. Cookies have their path's scoped to the site and I have a bit of extra code in place to copy cookies over when switching protocol or subdomain. No red is required!
I also made a number of other changes in the vein of modularizing things: the proxy is now available as an express-compatible library and you can add your own processing hoooks and remove or reconfigure all of the built in ones.
from node-unblocker.
Related Issues (20)
- HBO max and Netflix videos not playing HOT 4
- Instagarm dms not loading HOT 2
- Mixed Content Issue
- Proxy redirects to ogiginal site which is blocked HOT 6
- roblox HOT 1
- new node unlocked links HOT 5
- [Bug] Does Not work. HOT 10
- Weird Redirect when deploying with openode.io HOT 2
- Error HOT 1
- Discord isn't working. HOT 5
- Discord link HOT 2
- Next.js support HOT 3
- maleik2
- JustAguy HOT 1
- In Search Of A Proxy HOT 2
- Setting a static URL without typing it after the prefix HOT 7
- Google safe-browsing flags unblocker as phishing
- Proxy not working with Nike.com and Cloudflare HOT 2
- My administrator's website still blocks it even when I use unblockernode
- Z_DATA_ERROR HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-unblocker.