14 Commits

Author SHA1 Message Date
Paramtamtam
93339d5159 Update CHANGELOG.md 2021-07-05 10:34:23 +05:00
Paramtamtam
1ef63988a7 Bump 3proxy version 2021-07-05 10:33:03 +05:00
dependabot[bot]
921fc47ade Bump busybox from 1.32-glibc to 1.33.1-glibc (#6) 2021-05-10 06:52:28 +00:00
Paramtamtam
e2d06289c4 Fix logformat 2021-05-03 21:14:15 +05:00
Paramtamtam
009ec66d86 Logging in JSON format 2021-05-03 20:57:35 +05:00
dependabot[bot]
19c9d5528e Bump gcc from 10.3.0 to 11.1.0 (#5) 2021-05-03 07:02:04 +00:00
dependabot[bot]
edc91855c5 Bump gcc from 10.2.0 to 10.3.0 (#4)
Bumps gcc from 10.2.0 to 10.3.0.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 19:23:30 +05:00
Paramtamtam
e53ceaa3e3 Revert "Docker image arch linux/arm/v7 added"
This reverts commit 8c5b04a0df.
2021-03-23 15:16:05 +05:00
Paramtamtam
8c5b04a0df Docker image arch linux/arm/v7 added 2021-03-23 15:08:46 +05:00
Paramtamtam
ce90d6dc89 Update tests.yml 2021-03-22 10:11:12 +05:00
dependabot[bot]
b8ab9af377 Bump gcc from 9.3 to 10.2.0 (#2) 2021-01-16 07:22:45 +00:00
Paramtamtam
6bd02fba06 Github Actions (release) fixed 2021-01-16 01:43:35 +05:00
Paramtamtam
97e1214f68 Github Actions and readme file updated 2021-01-16 01:42:44 +05:00
Paramtamtam
6f590edfc5 Release CI fixed (#3) 2021-01-16 01:35:09 +05:00
6 changed files with 42 additions and 23 deletions

View File

@@ -7,15 +7,11 @@ on:
jobs: jobs:
docker-image: docker-image:
name: Build docker image name: Build docker image
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>
id: buildx
- name: Docker login in default registry - name: Docker login in default registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null
@@ -28,11 +24,15 @@ jobs:
- name: Build image - name: Build image
run: | run: |
docker buildx build \ docker build \
--platform ${{ steps.buildx.outputs.platforms }} \ --tag "tarampampam/3proxy:${{ steps.tag.outputs.value }}" \
--tag "tarampampam/3proxy:${{ steps.tag.outputs.value }} \
--tag "tarampampam/3proxy:latest" \ --tag "tarampampam/3proxy:latest" \
--tag "ghcr.io/tarampampam/3proxy:${{ steps.tag.outputs.value }}" \ --tag "ghcr.io/tarampampam/3proxy:${{ steps.tag.outputs.value }}" \
--tag "ghcr.io/tarampampam/3proxy:latest" \ --tag "ghcr.io/tarampampam/3proxy:latest" \
--push \ -f ./Dockerfile .
.
- name: Push into default registry
run: docker push "tarampampam/3proxy:${{ steps.tag.outputs.value }}" && docker push "tarampampam/3proxy:latest"
- name: Push into ghcr.io
run: docker push "ghcr.io/tarampampam/3proxy:${{ steps.tag.outputs.value }}" && docker push "ghcr.io/tarampampam/3proxy:latest"

View File

@@ -7,8 +7,6 @@ on:
tags-ignore: tags-ignore:
- '**' - '**'
pull_request: pull_request:
schedule:
- cron: '0 0 * * 0' # once in a week, docs: <https://git.io/JvxXE#onschedule>
jobs: # Docs: <https://git.io/JvxXE> jobs: # Docs: <https://git.io/JvxXE>
build-image: build-image:
@@ -74,7 +72,7 @@ jobs: # Docs: <https://git.io/JvxXE>
--proxy http://127.0.0.1:3128 \ --proxy http://127.0.0.1:3128 \
--connect-timeout 3 \ --connect-timeout 3 \
--max-time 3 \ --max-time 3 \
https://github.com/robots.txt https://www.cloudflare.com/robots.txt
- name: Try to use SOCKS proxy - name: Try to use SOCKS proxy
if: matrix.auth != 'yes' if: matrix.auth != 'yes'
@@ -83,7 +81,7 @@ jobs: # Docs: <https://git.io/JvxXE>
--proxy socks5://127.0.0.1:1080 \ --proxy socks5://127.0.0.1:1080 \
--connect-timeout 3 \ --connect-timeout 3 \
--max-time 3 \ --max-time 3 \
https://github.com/robots.txt https://www.cloudflare.com/robots.txt
- name: Try to use HTTP proxy (with auth) - name: Try to use HTTP proxy (with auth)
if: matrix.auth == 'yes' if: matrix.auth == 'yes'
@@ -93,7 +91,7 @@ jobs: # Docs: <https://git.io/JvxXE>
--proxy-user evil:live \ --proxy-user evil:live \
--connect-timeout 3 \ --connect-timeout 3 \
--max-time 3 \ --max-time 3 \
https://github.com/robots.txt https://www.cloudflare.com/robots.txt
- name: Try to use SOCKS proxy (with auth) - name: Try to use SOCKS proxy (with auth)
if: matrix.auth == 'yes' if: matrix.auth == 'yes'
@@ -103,7 +101,7 @@ jobs: # Docs: <https://git.io/JvxXE>
--proxy-user evil:live \ --proxy-user evil:live \
--connect-timeout 3 \ --connect-timeout 3 \
--max-time 3 \ --max-time 3 \
https://github.com/robots.txt https://www.cloudflare.com/robots.txt
- name: Stop container - name: Stop container
run: docker stop $(docker ps -a --filter ancestor=3proxy:local -q) run: docker stop $(docker ps -a --filter ancestor=3proxy:local -q)

View File

@@ -16,8 +16,9 @@ nscache 65536
# Here we can change timeout values # Here we can change timeout values
timeouts 1 5 30 60 180 1800 15 60 timeouts 1 5 30 60 180 1800 15 60
# Logging docs: <https://3proxy.org/doc/howtor.html#LOGFORMAT>
log /dev/stdout log /dev/stdout
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" logformat "-\""+_G{""time_unix"":%t, ""proxy"":{""type:"":""%N"", ""port"":%p}, ""error"":{""code"":""%E""}, ""auth"":{""user"":""%U""}, ""client"":{""ip"":""%C"", ""port"":%c}, ""server"":{""ip"":""%R"", ""port"":%r}, ""bytes"":{""sent"":%O, ""received"":%I}, ""request"":{""hostname"":""%n""}, ""message"":""%T""}"
maxconn 1024 maxconn 1024

View File

@@ -4,6 +4,18 @@ 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.4.0
### Changed
- 3proxy updated from `0.9.3` up to `0.9.4`
## v1.3.0
### Changed
- Logging in JSON format
## v1.2.0 ## v1.2.0
### Changed ### Changed

View File

@@ -1,8 +1,8 @@
# Image page: <https://hub.docker.com/_/alpine> # Image page: <https://hub.docker.com/_/gcc>
FROM gcc:9.3 as builder FROM gcc:11.1.0 as builder
# e.g.: `docker build --build-arg "VERSION=0.9.3" .` # e.g.: `docker build --build-arg "VERSION=0.9.4" .`
ARG VERSION="0.9.3" ARG VERSION="0.9.4"
# Fetch 3proxy sources # Fetch 3proxy sources
RUN set -x \ RUN set -x \
@@ -34,7 +34,7 @@ RUN set -x \
&& strip ./bin/SSLPlugin.ld.so && strip ./bin/SSLPlugin.ld.so
# Prepare filesystem for 3proxy running # Prepare filesystem for 3proxy running
FROM busybox:1.32-glibc as buffer FROM busybox:1.33.1-glibc as buffer
# Copy binaries # Copy binaries
COPY --from=builder /lib/x86_64-linux-gnu/libdl.so.* /lib/ COPY --from=builder /lib/x86_64-linux-gnu/libdl.so.* /lib/

View File

@@ -12,7 +12,7 @@
## Why this image created? ## Why this image created?
3proxy is awesome and lightweight proxy-server. This image contains stable version with it and can be configured using environment variables. By default, it uses anonymous (information about client hiding) proxy settings. 3proxy is awesome and lightweight proxy-server. This image contains stable version with it and can be configured using environment variables. By default, it uses anonymous (information about client hiding) proxy settings. Logging in JSON format.
> Page on `hub.docker.com` can be [found here][link_docker_hub]. > Page on `hub.docker.com` can be [found here][link_docker_hub].
@@ -58,6 +58,14 @@ $ docker run --rm -d \
tarampampam/3proxy:latest tarampampam/3proxy:latest
``` ```
## Releasing
New versions publishing is very simple - just make required changes in this repository, update [changelog file](CHANGELOG.md) and "publish" new release using repo releases page.
Docker images will be build and published automatically.
> New release will overwrite the `latest` docker image tag in both registers.
## Changes log ## Changes log
[![Release date][badge_release_date]][link_releases] [![Release date][badge_release_date]][link_releases]