mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Upload
This commit is contained in:
168
goproxy/DOCS.md
168
goproxy/DOCS.md
@@ -1,168 +0,0 @@
|
||||
# Home Assistant Community Add-on: GoProxy
|
||||
|
||||
The GoProxy is a high-performance http proxy, https proxy, socks5 proxy, ss proxy, websocket proxies, tcp proxies, udp proxies, game shield, game proxies. Support forward proxies, reverse proxy, transparent proxy, internet nat proxies, https proxy load balancing, http proxy load balancing , socks5 proxies load balancing, socket proxy load balancing, ss proxy load balancing, TCP / UDP port mapping, SSH transit, TLS encrypted transmission, protocol conversion, anti-pollution DNS proxy, API authentication, speed limit, limit connection. Reverse proxies to help you expose a local server behind a NAT or firewall to the internet so that you or your visitors can access it directly and easily.
|
||||
|
||||
Project url : https://github.com/snail007/goproxy
|
||||
|
||||
## Installation
|
||||
|
||||
The installation of this add-on is pretty straightforward and not different in
|
||||
comparison to installing any other Home Assistant add-on.
|
||||
|
||||
1. Search for the "Bitwarden RS" add-on in the Supervisor add-on store and
|
||||
install it.
|
||||
1. Start the "Bitwarden RS" add-on.
|
||||
1. Check the logs of the "Bitwarden RS" add-on to see if everything went
|
||||
well and to get the admin token/password.
|
||||
1. Click the "OPEN WEB UI" button to open Bitwarden RS.
|
||||
1. Add `/admin` to the URL to access the admin panel, e.g.,
|
||||
`http://hassio.local:7277/admin`. Log in using the admin token you got
|
||||
in step 3.
|
||||
1. The admin/token in the logs is only shown until it is saved or changed.
|
||||
Hit save in the admin panel to use the randomly generated password or
|
||||
change it to one of your choosing.
|
||||
1. Be sure to store your admin token somewhere safe.
|
||||
|
||||
## Configuration
|
||||
|
||||
**Note**: _Remember to restart the add-on when the configuration is changed._
|
||||
|
||||
Example add-on configuration:
|
||||
|
||||
```yaml
|
||||
log_level: info
|
||||
ssl: false
|
||||
certfile: fullchain.pem
|
||||
keyfile: privkey.pem
|
||||
request_size_limit: 10485760
|
||||
```
|
||||
|
||||
**Note**: _This is just an example, don't copy and paste it! Create your own!_
|
||||
|
||||
### Option: `log_level`
|
||||
|
||||
The `log_level` option controls the level of log output by the addon and can
|
||||
be changed to be more or less verbose, which might be useful when you are
|
||||
dealing with an unknown issue. Possible values are:
|
||||
|
||||
- `trace`: Show every detail, like all called internal functions.
|
||||
- `debug`: Shows detailed debug information.
|
||||
- `info`: Normal (usually) interesting events.
|
||||
- `warning`: Exceptional occurrences that are not errors.
|
||||
- `error`: Runtime errors that do not require immediate action.
|
||||
- `fatal`: Something went terribly wrong. Add-on becomes unusable.
|
||||
|
||||
Please note that each level automatically includes log messages from a
|
||||
more severe level, e.g., `debug` also shows `info` messages. By default,
|
||||
the `log_level` is set to `info`, which is the recommended setting unless
|
||||
you are troubleshooting.
|
||||
|
||||
### Option: `ssl`
|
||||
|
||||
Enables/Disables SSL (HTTPS). Set it `true` to enable it, `false` otherwise.
|
||||
|
||||
**Note**: _The SSL settings only apply to direct access and has no effect
|
||||
on the Ingress service._
|
||||
|
||||
### Option: `certfile`
|
||||
|
||||
The certificate file to use for SSL.
|
||||
|
||||
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
|
||||
|
||||
### Option: `keyfile`
|
||||
|
||||
The private key file to use for SSL.
|
||||
|
||||
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
|
||||
|
||||
### Option: `request_size_limit`
|
||||
|
||||
By default the API calls are limited to 10MB. This should be sufficient for
|
||||
most cases, however if you want to support large imports, this might be
|
||||
limiting you. On the other hand you might want to limit the request size to
|
||||
something smaller than that to prevent API abuse and possible DOS attack,
|
||||
especially if running with limited resources.
|
||||
|
||||
To set the limit, you can use this setting: 10MB would be `10485760`.
|
||||
|
||||
## Known issues and limitations
|
||||
|
||||
- This add-on cannot support Ingress at this time due to technical limitations
|
||||
of the Bitwarden Vault web interface.
|
||||
- Some web browsers, like Chrome, disallow the use of Web Crypto APIs in
|
||||
insecure contexts. In this case, you might get an error like
|
||||
`Cannot read property 'importKey'`. To solve this problem, you need to enable
|
||||
SSL and access the web interface using HTTPS.
|
||||
|
||||
## Changelog & Releases
|
||||
|
||||
This repository keeps a change log using [GitHub's releases][releases]
|
||||
functionality. The format of the log is based on
|
||||
[Keep a Changelog][keepchangelog].
|
||||
|
||||
Releases are based on [Semantic Versioning][semver], and use the format
|
||||
of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented
|
||||
based on the following:
|
||||
|
||||
- `MAJOR`: Incompatible or major changes.
|
||||
- `MINOR`: Backwards-compatible new features and enhancements.
|
||||
- `PATCH`: Backwards-compatible bugfixes and package updates.
|
||||
|
||||
## Support
|
||||
|
||||
Got questions?
|
||||
|
||||
You have several options to get them answered:
|
||||
|
||||
- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
|
||||
support and feature requests.
|
||||
- The [Home Assistant Discord chat server][discord-ha] for general Home
|
||||
Assistant discussions and questions.
|
||||
- The Home Assistant [Community Forum][forum].
|
||||
- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit]
|
||||
|
||||
You could also [open an issue here][issue] GitHub.
|
||||
|
||||
## Authors & contributors
|
||||
|
||||
The original setup of this repository is by [Franck Nijhof][frenck].
|
||||
|
||||
For a full list of all authors and contributors,
|
||||
check [the contributor's page][contributors].
|
||||
|
||||
## License
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019-2020 Franck Nijhof
|
||||
|
||||
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.
|
||||
|
||||
[goproxy-rs]: https://github.com/dani-garcia/goproxy_rs
|
||||
[contributors]: https://github.com/hassio-addons/addon-goproxy/graphs/contributors
|
||||
[discord-ha]: https://discord.gg/c5DvZ4e
|
||||
[discord]: https://discord.me/hassioaddons
|
||||
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-goproxy-rs/115573?u=frenck
|
||||
[frenck]: https://github.com/frenck
|
||||
[issue]: https://github.com/hassio-addons/addon-goproxy/issues
|
||||
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
|
||||
[reddit]: https://reddit.com/r/homeassistant
|
||||
[releases]: https://github.com/hassio-addons/addon-goproxy/releases
|
||||
[semver]: http://semver.org/spec/v2.0.0.htm
|
||||
@@ -1,27 +0,0 @@
|
||||
# Home assistant add-on: Goproxy (Bitwarden RS)
|
||||
|
||||
# ⚠️ It is recommended to use the official addon (https://github.com/hassio-addons/addon-goproxy) instead of this fork. The only benefit of this fork is automated releases, now implemented in the offical one. ⚠️
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
[](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml)
|
||||
|
||||
[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white
|
||||
|
||||
_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_
|
||||
|
||||
[](https://github.com/alexbelgium/hassio-addons/stargazers)
|
||||
|
||||

|
||||
|
||||
## About
|
||||
|
||||
Created by Frenck, please see documentation here : https://github.com/hassio-addons/addon-goproxy
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/hassio-addons/base/aarch64:15.0.7
|
||||
amd64: ghcr.io/hassio-addons/base/amd64:15.0.7
|
||||
armv7: ghcr.io/hassio-addons/base/armv7:15.0.7
|
||||
codenotary:
|
||||
signer: alexandrep.github@gmail.com
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7"
|
||||
],
|
||||
"codenotary": "alexandrep.github@gmail.com",
|
||||
"description": "high performance proxy server",
|
||||
"image": "ghcr.io/alexbelgium/goproxy-{arch}",
|
||||
"init": false,
|
||||
"map": [
|
||||
"addon_config:rw",
|
||||
"ssl"
|
||||
],
|
||||
"name": "Goproxy",
|
||||
"options": {
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem",
|
||||
"TZ": "Europe/Paris",
|
||||
"ssl": true
|
||||
},
|
||||
"ports": {
|
||||
"7277/tcp": 7277
|
||||
},
|
||||
"ports_description": {
|
||||
"7277/tcp": "Bitwarden Vault"
|
||||
},
|
||||
"schema": {
|
||||
"certfile": "str",
|
||||
"keyfile": "str",
|
||||
"TZ": "str",
|
||||
"ssl": "bool"
|
||||
},
|
||||
"slug": "goproxy",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/goproxy",
|
||||
"version": "0.1",
|
||||
"webui": "http://[HOST]:[PORT:7277]"
|
||||
}
|
||||
BIN
goproxy/icon.png
BIN
goproxy/icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB |
BIN
goproxy/logo.png
BIN
goproxy/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB |
@@ -1,24 +0,0 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# Set TZ
|
||||
if bashio::config.has_value 'TZ'; then
|
||||
TIMEZONE=$(bashio::config 'TZ')
|
||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||
echo "$TIMEZONE" >/etc/timezone
|
||||
fi || (bashio::log.fatal "Error : $TIMEZONE not found. Here is a list of valid timezones : https://manpages.ubuntu.com/manpages/focal/man3/DateTime::TimeZone::Catalog.3pm.html")
|
||||
|
||||
#bashio::log.info "Generating self signed certificate"
|
||||
#/./proxy keygen -s -C proxy -c goproxy
|
||||
#
|
||||
#echo " "
|
||||
# Start app
|
||||
if [ -f /config/goproxy.txt ]; then
|
||||
bashio::log.info "Starting app using the file in /addon_configs/xx-goproxy/goproxy.txt"
|
||||
/./proxy @/config/goproxy.txt
|
||||
else
|
||||
bashio::log.warning "goproxy configuration file not existing, please create one in /addon_configs/xx-goproxy/goproxy.txt according to https://github.com/snail007/goproxy"
|
||||
sleep 500
|
||||
fi
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"last_update": "21-11-2023",
|
||||
"paused": true,
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "goproxy",
|
||||
"source": "github",
|
||||
"upstream_repo": "dani-garcia/goproxy_rs",
|
||||
"upstream_version": "1.30.1"
|
||||
}
|
||||
@@ -19,14 +19,6 @@ ARG BUILD_VERSION
|
||||
FROM ${BUILD_FROM}
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
ENV VERSION 14.1
|
||||
|
||||
RUN set -xe && \
|
||||
UNAME=$(uname -m) && if [ "$UNAME" = "x86_64" ]; then export PLATFORM=amd64 ; else export PLATFORM=arm64-v8 ; fi && \
|
||||
apk add tzdata && \
|
||||
wget https://github.com/snail007/goproxy/releases/download/v${VERSION}/proxy-linux-${PLATFORM}.tar.gz && \
|
||||
tar -xvf proxy-linux-${PLATFORM}.tar.gz
|
||||
|
||||
##################
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
@@ -44,17 +36,14 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
COPY rootfs/ /
|
||||
|
||||
# Modules
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh"
|
||||
ARG MODULES="00-global_var.sh"
|
||||
|
||||
# Automatic modules download
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh"
|
||||
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
|
||||
|
||||
# Manual apps
|
||||
ENV PACKAGES="" \
|
||||
libpq5 \
|
||||
nginx \
|
||||
sqlite3"
|
||||
ENV PACKAGES=""
|
||||
|
||||
# Automatic apps & bashio
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
|
||||
@@ -72,7 +61,6 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh"
|
||||
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
|
||||
|
||||
#
|
||||
#WORKDIR /
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
CMD [ "/ha_entrypoint.sh" ]
|
||||
0
socks5-proxy/README.md
Normal file
0
socks5-proxy/README.md
Normal file
@@ -1,6 +1,6 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile goproxy_addon flags=(attach_disconnected,mediate_deleted) {
|
||||
profile socks5-server_addon flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
capability,
|
||||
7
socks5-proxy/build.yaml
Normal file
7
socks5-proxy/build.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: serjs/go-socks5-proxy:latest
|
||||
amd64: serjs/go-socks5-proxy:latest
|
||||
armv7: serjs/go-socks5-proxy:latest
|
||||
codenotary:
|
||||
signer: alexandrep.github@gmail.com
|
||||
30
socks5-proxy/config.json
Normal file
30
socks5-proxy/config.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7"
|
||||
],
|
||||
"codenotary": "alexandrep.github@gmail.com",
|
||||
"description": "high performance proxy server",
|
||||
"environment": {
|
||||
"PROXY_PORT": "1080"
|
||||
},
|
||||
"image": "ghcr.io/alexbelgium/socks5-server-{arch}",
|
||||
"init": false,
|
||||
"name": "Socks5 Server",
|
||||
"ports": {
|
||||
"1080/tcp": 1080
|
||||
},
|
||||
"ports_description": {
|
||||
"1080/tcp": "Socks5 port"
|
||||
},
|
||||
"schema": {
|
||||
"PROXY_USER": "str",
|
||||
"PROXY_PASSWORD": "str",
|
||||
"ALLOWED_DEST_FQDN": "str?",
|
||||
"ALLOWED_IPS": "str?"
|
||||
},
|
||||
"slug": "socks5-server",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/socks5-server",
|
||||
"version": "0.1"
|
||||
}
|
||||
BIN
socks5-proxy/icon.png
Normal file
BIN
socks5-proxy/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
socks5-proxy/logo.png
Normal file
BIN
socks5-proxy/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
6
socks5-proxy/rootfs/etc/cont-init.d/99-run.sh
Normal file
6
socks5-proxy/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# Start app
|
||||
/./socks5
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
8
socks5-proxy/updater.json
Normal file
8
socks5-proxy/updater.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"last_update": "21-11-2023",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "socks5-server",
|
||||
"source": "dockerhub",
|
||||
"upstream_repo": "serjs/go-socks5-proxy",
|
||||
"upstream_version": "0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user