abhinavsingh / proxy.py

💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • 😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • 👮🏿 "Proxy Server" framework • 🌐 "Web Server" framework • ➵ ➶ ➷ ➠ "PubSub" framework • 👷 "Work" acceptor & executor framework
https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/
BSD 3-Clause "New" or "Revised" License
3.01k stars 573 forks source link

`DEFAULT_DATA_DIRECTORY_PATH` Should be configurable #1316

Closed brki closed 5 months ago

brki commented 1 year ago

DEFAULT_DATA_DIRECTORY_PATH is hardcoded to ~/.proxy.

Describe the solution you'd like DEFAULT_DATA_DIRECTORY_PATH is configurable via an option, for example --data-directory=/opt/proxy.py/data

sunnyjocker commented 1 year ago

have this issue too, there is a extra work need to do if running proxy.py in docker image with host user, the $HOME directory doesn't exist, so i have to create it manually

abhinavsingh commented 1 year ago

@brki Thank you for bringing this to highlight.

@sunnyjocker Can understand the scenario you described (running as host user) and having to do extra work when setting up proxy.py

Will get this out in next release. ETA end-of-month.

abhinavsingh commented 5 months ago

@sunnyjocker @brki Following PR fixes this, now you may pass --data-dir flag to customise it