proxy

how do i set proxy for chrome in python webdriver

对着背影说爱祢 提交于 2020-01-08 17:06:09
问题 I'm using this code: profile = webdriver.FirefoxProfile() profile.set_preference("network.proxy.type", 1) profile.set_preference("network.proxy.http", "proxy.server.address") profile.set_preference("network.proxy.http_port", "port_number") profile.update_preferences() driver = webdriver.Firefox(firefox_profile=profile) to set proxy for FF in python webdriver. This works for FF. How to set proxy like this in Chrome? I found this exmaple but is not very helpful. When i run the script nothing

docker running nginx as proxy to another webserver (on pi)

一曲冷凌霜 提交于 2020-01-07 08:25:07
问题 I am kind of in over my head with my current small project. (although it should not be that hard) I am trying to run multiple webpages using docker on my Pi (for testing purposes) wich should all be reachable using the PI's IP. I currently run a minimL LIGHTTPD: (based on the resin/rpi-raspbian image) docker run -d -v <testconfig>:/etc/lighttpd -p <pi-ip>:8080:80 <image name> (this server is reachable using the browser on pi and on other computers in the network) For nginx i run another

How to change nginx-proxy settings

人走茶凉 提交于 2020-01-07 03:50:21
问题 I am using this lib: https://github.com/jwilder/nginx-proxy Here is my docker-compose file: version: '2' services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy ports: - "80:80" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro whoami: image: jwilder/whoami environment: - VIRTUAL_HOST=whoami.local service1: image: mynode:1.4 build: . volumes: - .:/app restart: always environment: - VIRTUAL_HOST=service1.local service2: image: mynodeother:1.3 build: . volumes: - .:/app

Squid Delay Pool - restricting bandwidth per user / ip address

时光总嘲笑我的痴心妄想 提交于 2020-01-07 02:53:06
问题 I need to limit the bandwidth of all users on a transparent squid proxy so that nobody is using more than 1Mbps (i.e. at least 100 people can use our 100Mbps connection without one person dominating and reducing performance for everybody). I'm not fussed if the restriction is done per user or per IP, but would be open to suggestions / help on the impacts of both choices. So far I've added to my squid.conf: delay_pools 1 delay_class 1 2 delay_access 1 allow all delay_parameters 4 32000/32000

Apache proxy server file upload limi is 128k?

元气小坏坏 提交于 2020-01-07 00:36:14
问题 I am running an Apache 2.2.3 proxy server to hide my backend machines from users. I added a file upload service to my webservices; however, files larger than 128 kb are returning http Status Code of 413. I know this means Request entity too large, and I have scoured the internet looking for a solution. I have changed my php.ini file to have max_execution_time = 3000, max_input_time = 6000, memory_limit = 128M, post_max_size = 20M, upload_max_filesize = 20M, default_socket_timeout = 6000. This

Checking proxy set header forwaded by nginx reverse proxy (Django app)

不羁岁月 提交于 2020-01-06 20:18:35
问题 I'm using nginx as reverse proxy with gunicorn for my Django app, and am new to webserver configuration. My app has a postgres backend, and the machine hosting it has Ubuntu 14.04 lts installed. I have reason to suspect that my nginx configuration is not forwarding proxy set header to the Django app correctly. Is there a way I can see (e.g. print?) the host, http_user_agent, remote_addr etc. forwarded, on the linux command line to test my gut feel? Secondly, how do I check whether my Django

NodeJS - securely connect to external redis server

主宰稳场 提交于 2020-01-06 15:18:56
问题 On my main server , I fetch data from an external/seperate redis server which is accessed through an api https://localhost:7000/api/?token=**** which works. However token and api is not secure. And since I want to have redis server to be separate, this technique isn't suited for my case. In my case I want to have 2 independent servers A and B . A should load data from B without using an api or url call... Instead it should use port (e.g. //server:123 ). This way server B can only be accessed

NodeJS - securely connect to external redis server

主宰稳场 提交于 2020-01-06 15:18:56
问题 On my main server , I fetch data from an external/seperate redis server which is accessed through an api https://localhost:7000/api/?token=**** which works. However token and api is not secure. And since I want to have redis server to be separate, this technique isn't suited for my case. In my case I want to have 2 independent servers A and B . A should load data from B without using an api or url call... Instead it should use port (e.g. //server:123 ). This way server B can only be accessed

Nginx reverse proxy for Socket.IO dropping messages at a certain size

好久不见. 提交于 2020-01-06 13:52:38
问题 I have nginx setup as a reverse proxy with the following config. worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 8080; server_name localhost; add_header X-Cache-Status $upstream_cache_status; location /node/ { proxy_http_version 1.1; proxy_pass http://127.0.0.1:8000/; proxy_redirect off; proxy_set_header Connection

problem using proxy with HttpWebRequest in C#

只谈情不闲聊 提交于 2020-01-06 08:57:08
问题 I'm using this code to use proxy with HttpWebRequest public string GetBoardPageResponse(string url, string proxy = "") { ServicePointManager.Expect100Continue = false; HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest; HttpWebResponse response = null; WebProxy myProxy = new WebProxy(proxy); request.Proxy = myProxy; request.Timeout = 20000; request.ReadWriteTimeout = 20000; request.Accept = "*/*"; request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2