Compare commits

..

6 Commits

Author SHA1 Message Date
c3224fbd48 updated config socks5 2025-11-03 08:32:27 +00:00
271b80c980 restarting 2025-11-03 08:31:32 +00:00
b8e26e1963 restarting 2025-11-03 08:30:00 +00:00
3eb23a5daa Update README.md 2025-11-03 07:52:18 +00:00
392c7ff133 Merge commit 'e5b142fcc7a66f8363705d4725aefb3c5302159c' as 'ha-socks5-proxy' 2025-11-03 07:49:53 +00:00
e5b142fcc7 Squashed 'ha-socks5-proxy/' content from commit 1442b26
git-subtree-dir: ha-socks5-proxy
git-subtree-split: 1442b26111063f98f0fe39db61f2f8da32893285
2025-11-03 07:49:53 +00:00
7 changed files with 118 additions and 1 deletions

View File

@@ -1,2 +1,44 @@
# ha-addons
# ZTSW HA Add-Ons
Add-on documentation: <https://developers.home-assistant.io/docs/add-ons>
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgit.ztsw.de%2Fpedan%2Fha-addons)
## Add-ons
This repository contains the following add-ons
### [HA-Socks5-Proxy](./ha-socks5-proxy)
![Supports aarch64 Architecture][aarch64-shield]
![Supports amd64 Architecture][amd64-shield]
![Supports armhf Architecture][armhf-shield]
![Supports armv7 Architecture][armv7-shield]
![Supports i386 Architecture][i386-shield]
_Example add-on to use as a blueprint for new add-ons._
<!--
Notes to developers after forking or using the github template feature:
- While developing comment out the 'image' key from 'example/config.yaml' to make the supervisor build the addon
- Remember to put this back when pushing up your changes.
- When you merge to the 'main' branch of your repository a new build will be triggered.
- Make sure you adjust the 'version' key in 'example/config.yaml' when you do that.
- Make sure you update 'example/CHANGELOG.md' when you do that.
- The first time this runs you might need to adjust the image configuration on github container registry to make it public
- You may also need to adjust the github Actions configuration (Settings > Actions > General > Workflow > Read & Write)
- Adjust the 'image' key in 'example/config.yaml' so it points to your username instead of 'home-assistant'.
- This is where the build images will be published to.
- Rename the example directory.
- The 'slug' key in 'example/config.yaml' should match the directory name.
- Adjust all keys/url's that points to 'home-assistant' to now point to your user/fork.
- Share your repository on the forums https://community.home-assistant.io/c/projects/9
- Do awesome stuff!
-->
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg

View 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
View 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.

View File

@@ -0,0 +1,2 @@
# ha-socks5-proxy

View 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

View File

@@ -0,0 +1,32 @@
name: "SOCKS5 Proxy"
version: "1.0.1"
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
View 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