From 920895ff23f112881167f883a72f24dab65664e3 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 16 Oct 2021 10:41:46 +0200 Subject: [PATCH] Systemd support --- README.md | 23 +++++++++++++++++++++++ opaque-proxy.service | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 README.md create mode 100644 opaque-proxy.service diff --git a/README.md b/README.md new file mode 100644 index 0000000..e90474a --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# opaque-proxy + +A simple HTTP proxy. + +## Usage: + +``` +npm install -g +opaque-proxy +``` + +then it will listen on port 8383. Then you can make requests like: + +`http://localhost:8383/?url=https://duckduckgo.com` + +## Install as a daemon + +``` +cp opaque-proxy.service /etc/systemd/system +systemctl daemon-reload +systemctl enable opaque-proxy +systemctl start opaque-proxy +``` diff --git a/opaque-proxy.service b/opaque-proxy.service new file mode 100644 index 0000000..b465ca1 --- /dev/null +++ b/opaque-proxy.service @@ -0,0 +1,6 @@ +[Unit] +Description=Simple opaque HTTP proxy +After=network.target + +[Service] +ExecStart=opaque-proxy