Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
276efbfeae | ||
|
|
eabbb17fa5 | ||
|
|
37066552b8 | ||
|
|
fb681a846e | ||
|
|
dcf291de25 | ||
|
|
4f60889624 | ||
|
|
298e65c0b0 | ||
|
|
f3596b86ea | ||
|
|
513a467b11 | ||
|
|
7b2e6ac6da | ||
|
|
a44fde46e6 | ||
|
|
283a52abe6 | ||
|
|
63731eca8c | ||
|
|
7dd058d8aa | ||
|
|
7490d4dce8 | ||
|
|
6d215e502c | ||
|
|
d8f9aa2024 | ||
|
|
98a8747a3c | ||
|
|
1febd8abe7 | ||
|
|
e5e9f108eb | ||
|
|
7b6870751c |
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
@@ -5,12 +5,12 @@ version: 2
|
|||||||
updates:
|
updates:
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: /
|
directory: /
|
||||||
|
groups: {any: {patterns: ['*']}}
|
||||||
schedule: {interval: monthly}
|
schedule: {interval: monthly}
|
||||||
reviewers: [tarampampam]
|
|
||||||
assignees: [tarampampam]
|
assignees: [tarampampam]
|
||||||
|
|
||||||
- package-ecosystem: docker
|
- package-ecosystem: docker
|
||||||
directory: /
|
directory: /
|
||||||
|
groups: {any: {patterns: ['*']}}
|
||||||
schedule: {interval: monthly}
|
schedule: {interval: monthly}
|
||||||
reviewers: [tarampampam]
|
|
||||||
assignees: [tarampampam]
|
assignees: [tarampampam]
|
||||||
|
|||||||
25
.github/workflows/dependabot.yml
vendored
Normal file
25
.github/workflows/dependabot.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: dependabot
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependabot: # https://tinyurl.com/e69djmen
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||||
|
steps:
|
||||||
|
- uses: dependabot/fetch-metadata@v2
|
||||||
|
id: metadata
|
||||||
|
with: {github-token: "${{ secrets.GITHUB_TOKEN }}"}
|
||||||
|
|
||||||
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
|
if: ${{ contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type) }}
|
||||||
|
run: gh pr merge --auto --merge "$PR_URL"
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
4
.github/workflows/documentation.yml
vendored
4
.github/workflows/documentation.yml
vendored
@@ -10,9 +10,9 @@ jobs:
|
|||||||
name: Docker Hub Description
|
name: Docker Hub Description
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: peter-evans/dockerhub-description@v3 # Action page: <https://github.com/peter-evans/dockerhub-description>
|
- uses: peter-evans/dockerhub-description@v4 # Action page: <https://github.com/peter-evans/dockerhub-description>
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_LOGIN }}
|
username: ${{ secrets.DOCKER_LOGIN }}
|
||||||
password: ${{ secrets.DOCKER_USER_PASSWORD }}
|
password: ${{ secrets.DOCKER_USER_PASSWORD }}
|
||||||
|
|||||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -9,26 +9,26 @@ jobs:
|
|||||||
name: Build docker image
|
name: Build docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- {uses: gacts/github-slug@v1, id: slug}
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v2
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v2
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- uses: docker/login-action@v2 # Action page: <https://github.com/docker/login-action>
|
- uses: docker/login-action@v3 # Action page: <https://github.com/docker/login-action>
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_LOGIN }}
|
username: ${{ secrets.DOCKER_LOGIN }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- uses: docker/login-action@v2 # Action page: <https://github.com/docker/login-action>
|
- uses: docker/login-action@v3 # Action page: <https://github.com/docker/login-action>
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: docker/build-push-action@v3 # Action page: <https://github.com/docker/build-push-action>
|
- uses: docker/build-push-action@v5 # Action page: <https://github.com/docker/build-push-action>
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@@ -15,7 +15,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
name: Gitleaks
|
name: Gitleaks
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with: {fetch-depth: 0}
|
with: {fetch-depth: 0}
|
||||||
|
|
||||||
- uses: gacts/gitleaks@v1
|
- uses: gacts/gitleaks@v1
|
||||||
@@ -24,7 +24,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
name: Build docker image
|
name: Build docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
run: docker build -f ./Dockerfile --tag 3proxy:local .
|
run: docker build -f ./Dockerfile --tag 3proxy:local .
|
||||||
@@ -33,7 +33,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
run: docker save 3proxy:local > ./docker-image.tar
|
run: docker save 3proxy:local > ./docker-image.tar
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docker-image
|
name: docker-image
|
||||||
path: ./docker-image.tar
|
path: ./docker-image.tar
|
||||||
@@ -49,7 +49,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
needs: [build-image]
|
needs: [build-image]
|
||||||
steps:
|
steps:
|
||||||
- name: Download built docker image
|
- name: Download built docker image
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docker-image
|
name: docker-image
|
||||||
path: .artifact
|
path: .artifact
|
||||||
|
|||||||
@@ -19,5 +19,6 @@
|
|||||||
"ports": {
|
"ports": {
|
||||||
"proxy": "${PROXY_PORT:-3128}",
|
"proxy": "${PROXY_PORT:-3128}",
|
||||||
"socks": "${SOCKS_PORT:-1080}"
|
"socks": "${SOCKS_PORT:-1080}"
|
||||||
}
|
},
|
||||||
|
"extra_config": "${EXTRA_CONFIG}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ auth strong
|
|||||||
allow {{ auth.login }}{{#auth.extra_accounts.*}},{{ * }}{{/auth.extra_accounts.*}}
|
allow {{ auth.login }}{{#auth.extra_accounts.*}},{{ * }}{{/auth.extra_accounts.*}}
|
||||||
{{/auth.password=}}{{/auth.login=}}
|
{{/auth.password=}}{{/auth.login=}}
|
||||||
|
|
||||||
|
{{^extra_config=}}
|
||||||
|
|
||||||
|
# Additional configuration
|
||||||
|
{{extra_config}}
|
||||||
|
{{/extra_config=}}
|
||||||
|
|
||||||
proxy -a -p{{ ports.proxy }}
|
proxy -a -p{{ ports.proxy }}
|
||||||
socks -a -p{{ ports.socks }}
|
socks -a -p{{ ports.socks }}
|
||||||
|
|
||||||
|
|||||||
22
CHANGELOG.md
22
CHANGELOG.md
@@ -4,6 +4,28 @@ All notable changes to this package will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
|
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
|
||||||
|
|
||||||
|
## v1.9.1
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Extra configuration now applies before defining the proxy server in the configuration file [#49]
|
||||||
|
|
||||||
|
[#49]:https://github.com/tarampampam/3proxy-docker/pull/49
|
||||||
|
|
||||||
|
## v1.9.0
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- `EXTRA_CONFIG` environment variable is supported now [#47]
|
||||||
|
|
||||||
|
[#47]:https://github.com/tarampampam/3proxy-docker/issues/47
|
||||||
|
|
||||||
|
## v1.8.3
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Missing port definitions when `EXTRA_ACCOUNTS` is set
|
||||||
|
|
||||||
## v1.8.2
|
## v1.8.2
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Image page: <https://hub.docker.com/_/gcc>
|
# Image page: <https://hub.docker.com/_/gcc>
|
||||||
FROM gcc:12.2.0 as builder
|
FROM gcc:13.2.0 as builder
|
||||||
|
|
||||||
# renovate: source=github-tags name=z3APA3A/3proxy
|
# renovate: source=github-tags name=z3APA3A/3proxy
|
||||||
ARG Z3PROXY_VERSION=0.9.4
|
ARG Z3PROXY_VERSION=0.9.4
|
||||||
@@ -55,7 +55,7 @@ RUN set -x \
|
|||||||
COPY --from=builder /lib/*-linux-gnu/libdl.so.* ./lib/
|
COPY --from=builder /lib/*-linux-gnu/libdl.so.* ./lib/
|
||||||
COPY --from=builder /tmp/3proxy/bin/3proxy ./bin/3proxy
|
COPY --from=builder /tmp/3proxy/bin/3proxy ./bin/3proxy
|
||||||
COPY --from=builder /tmp/3proxy/bin/*.ld.so ./usr/local/3proxy/libexec/
|
COPY --from=builder /tmp/3proxy/bin/*.ld.so ./usr/local/3proxy/libexec/
|
||||||
COPY --from=ghcr.io/tarampampam/mustpl:0.1.0 /bin/mustpl ./bin/mustpl
|
COPY --from=ghcr.io/tarampampam/mustpl:0.1.1 /bin/mustpl ./bin/mustpl
|
||||||
COPY 3proxy.cfg.json ./etc/3proxy/3proxy.cfg.json
|
COPY 3proxy.cfg.json ./etc/3proxy/3proxy.cfg.json
|
||||||
COPY 3proxy.cfg.mustach ./etc/3proxy/3proxy.cfg.mustach
|
COPY 3proxy.cfg.mustach ./etc/3proxy/3proxy.cfg.mustach
|
||||||
|
|
||||||
|
|||||||
21
README.md
21
README.md
@@ -45,16 +45,17 @@ Image: ghcr.io/tarampampam/3proxy:1.8.2
|
|||||||
|
|
||||||
## Supported environment variables
|
## Supported environment variables
|
||||||
|
|
||||||
| Variable name | Description | Example |
|
| Variable name | Description | Example |
|
||||||
|----------------------|-----------------------------------------------------------|-----------------------------------|
|
|----------------------|-----------------------------------------------------------------------------------|-----------------------------------|
|
||||||
| `PROXY_LOGIN` | Authorization login (empty by default) | `username` |
|
| `PROXY_LOGIN` | Authorization login (empty by default) | `username` |
|
||||||
| `PROXY_PASSWORD` | Authorization password (empty by default) | `password` |
|
| `PROXY_PASSWORD` | Authorization password (empty by default) | `password` |
|
||||||
| `EXTRA_ACCOUNTS` | Additional proxy users | `{"evil":"live", "guest":"pass"}` |
|
| `EXTRA_ACCOUNTS` | Additional proxy users | `{"evil":"live", "guest":"pass"}` |
|
||||||
| `PRIMARY_RESOLVER` | Primary nameserver (dns resolver; `1.0.0.1` by default) | `8.8.8.8:5353/tcp` |
|
| `PRIMARY_RESOLVER` | Primary nameserver (dns resolver; `1.0.0.1` by default) | `8.8.8.8:5353/tcp` |
|
||||||
| `SECONDARY_RESOLVER` | Secondary nameserver (dns resolver; `8.8.4.4` by default) | `2001:4860:4860::8844` |
|
| `SECONDARY_RESOLVER` | Secondary nameserver (dns resolver; `8.8.4.4` by default) | `2001:4860:4860::8844` |
|
||||||
| `MAX_CONNECTIONS` | Maximal connections count (`1024` by default) | `2056` |
|
| `MAX_CONNECTIONS` | Maximal connections count (`1024` by default) | `2056` |
|
||||||
| `PROXY_PORT` | HTTP proxy port number (`3128` by default) | `8080` |
|
| `PROXY_PORT` | HTTP proxy port number (`3128` by default) | `8080` |
|
||||||
| `SOCKS_PORT` | SOCKS proxy port number (`1080` by default) | `8888` |
|
| `SOCKS_PORT` | SOCKS proxy port number (`1080` by default) | `8888` |
|
||||||
|
| `EXTRA_CONFIG` | Additional 3proxy configuration (will be added to the **end** of the config file) | `# line 1\n# line 2` |
|
||||||
|
|
||||||
## How can I use this?
|
## How can I use this?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user