mirror of
https://github.com/Alexey71/opera-proxy.git
synced 2026-05-14 14:40:59 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 25997ae448 |
@@ -1 +0,0 @@
|
|||||||
bin/
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
name: docker-ci
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*.*.*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
# list of Docker images to use as base name for tags
|
|
||||||
images: |
|
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
|
|
||||||
# generate Docker tags based on the following events/attributes
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
type=sha
|
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
-
|
|
||||||
name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
id: docker_build
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
FROM --platform=$BUILDPLATFORM golang:1 AS build
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/Alexey71/opera-proxy
|
|
||||||
COPY . .
|
|
||||||
ARG TARGETOS TARGETARCH
|
|
||||||
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static"'
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /go/src/github.com/Alexey71/opera-proxy/opera-proxy /
|
|
||||||
USER 9999:9999
|
|
||||||
EXPOSE 18080/tcp
|
|
||||||
ENTRYPOINT ["/opera-proxy", "-bind-address", "0.0.0.0:18080"]
|
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
opera-proxy
|
opera-proxy
|
||||||
===========
|
===========
|
||||||
|
|
||||||
[](https://snapcraft.io/opera-proxy)
|
|
||||||
|
|
||||||
Standalone Opera VPN client.
|
Standalone Opera VPN client.
|
||||||
|
|
||||||
Just run it and it'll start a plain HTTP proxy server forwarding traffic through "Opera VPN" proxies of your choice.
|
Just run it and it'll start a plain HTTP proxy server forwarding traffic through "Opera VPN" proxies of your choice.
|
||||||
@@ -29,27 +27,6 @@ Alternatively, you may install opera-proxy from source. Run the following within
|
|||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Docker
|
|
||||||
|
|
||||||
A docker image is available as well. Here is an example of running opera-proxy as a background service:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
docker run -d \
|
|
||||||
--security-opt no-new-privileges \
|
|
||||||
-p 127.0.0.1:18080:18080 \
|
|
||||||
--restart unless-stopped \
|
|
||||||
--name opera-proxy \
|
|
||||||
yarmak/opera-proxy
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Snap Store
|
|
||||||
|
|
||||||
[](https://snapcraft.io/opera-proxy)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo snap install opera-proxy
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
List available countries:
|
List available countries:
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
name: opera-proxy
|
|
||||||
summary: Standalone Opera VPN proxies client.
|
|
||||||
description: |
|
|
||||||
Standalone Opera VPN proxies client. Just run it and it'll start plain HTTP proxy server forwarding traffic via proxies of your choice.
|
|
||||||
|
|
||||||
confinement: strict
|
|
||||||
base: core22
|
|
||||||
adopt-info: opera-proxy
|
|
||||||
|
|
||||||
parts:
|
|
||||||
opera-proxy:
|
|
||||||
plugin: go
|
|
||||||
build-snaps: [go/latest/stable]
|
|
||||||
build-packages:
|
|
||||||
- make
|
|
||||||
- git-core
|
|
||||||
source: https://github.com/Alexey71/opera-proxy
|
|
||||||
source-type: git
|
|
||||||
override-pull: |
|
|
||||||
craftctl default
|
|
||||||
craftctl set version="$(git describe --long --tags --always --match=v*.*.* | sed 's/v//')"
|
|
||||||
override-build:
|
|
||||||
make &&
|
|
||||||
cp bin/opera-proxy "$SNAPCRAFT_PART_INSTALL"
|
|
||||||
stage:
|
|
||||||
- opera-proxy
|
|
||||||
|
|
||||||
apps:
|
|
||||||
opera-proxy:
|
|
||||||
command: opera-proxy
|
|
||||||
plugs:
|
|
||||||
- network
|
|
||||||
- network-bind
|
|
||||||
Reference in New Issue
Block a user