restarting
This commit is contained in:
6
ha-socks5-proxy/Dockerfile
Normal file
6
ha-socks5-proxy/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
ARG BUILD_FROM
|
||||||
|
FROM serjs/go-socks5-proxy:latest
|
||||||
|
|
||||||
|
ENV PROXY_PORT=1080
|
||||||
|
|
||||||
|
CMD ["/app/bin/server"]
|
||||||
18
ha-socks5-proxy/LICENSE
Normal file
18
ha-socks5-proxy/LICENSE
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025 pedan
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
||||||
|
following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial
|
||||||
|
portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||||
|
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
||||||
|
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||||
|
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
2
ha-socks5-proxy/README.md
Normal file
2
ha-socks5-proxy/README.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# ha-socks5-proxy
|
||||||
|
|
||||||
4
ha-socks5-proxy/build.yaml
Normal file
4
ha-socks5-proxy/build.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
build_from:
|
||||||
|
aarch64: ghcr.io/home-assistant/aarch64-base:latest
|
||||||
|
amd64: ghcr.io/home-assistant/amd64-base:latest
|
||||||
|
armv7: ghcr.io/home-assistant/armv7-base:latest
|
||||||
32
ha-socks5-proxy/config.yaml
Normal file
32
ha-socks5-proxy/config.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: "SOCKS5 Proxy"
|
||||||
|
version: "1.0.0"
|
||||||
|
slug: "socks5_proxy"
|
||||||
|
description: "SOCKS5 Proxy Server für Firefox"
|
||||||
|
arch:
|
||||||
|
- aarch64
|
||||||
|
- amd64
|
||||||
|
- armv7
|
||||||
|
ports:
|
||||||
|
1080/tcp: 1080
|
||||||
|
environment:
|
||||||
|
PROXY_USER: ""
|
||||||
|
PROXY_PASSWORD: ""
|
||||||
|
PROXY_PORT: "1080"
|
||||||
|
options:
|
||||||
|
proxy_user: ""
|
||||||
|
proxy_password: ""
|
||||||
|
proxy_port: 1080
|
||||||
|
schema:
|
||||||
|
proxy_user: "str?"
|
||||||
|
proxy_password: "password?"
|
||||||
|
proxy_port: "port"
|
||||||
|
map:
|
||||||
|
- type: env
|
||||||
|
key: proxy_user
|
||||||
|
value: PROXY_USER
|
||||||
|
- type: env
|
||||||
|
key: proxy_password
|
||||||
|
value: PROXY_PASSWORD
|
||||||
|
- type: env
|
||||||
|
key: proxy_port
|
||||||
|
value: PROXY_PORT
|
||||||
13
ha-socks5-proxy/run.sh
Normal file
13
ha-socks5-proxy/run.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
|
PROXY_USER=$(bashio::config 'proxy_user')
|
||||||
|
PROXY_PASSWORD=$(bashio::config 'proxy_password')
|
||||||
|
PROXY_PORT=$(bashio::config 'proxy_port')
|
||||||
|
|
||||||
|
export PROXY_USER
|
||||||
|
export PROXY_PASSWORD
|
||||||
|
export PROXY_PORT
|
||||||
|
|
||||||
|
bashio::log.info "Starting SOCKS5 Proxy on port ${PROXY_PORT}..."
|
||||||
|
|
||||||
|
exec /app/bin/server
|
||||||
Reference in New Issue
Block a user