Compare commits
5
Commits
1cdb1ad4bc
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d373ec829c | ||
|
|
87880f1f26 | ||
|
|
ca6cc13455 | ||
|
|
c97e3801a8 | ||
|
|
0cdbb2fe7b |
@@ -43,7 +43,7 @@ jobs:
|
|||||||
docker push ${{ env.IMAGE_PATH }}:${{ matrix.arch }}-latest
|
docker push ${{ env.IMAGE_PATH }}:${{ matrix.arch }}-latest
|
||||||
|
|
||||||
amend-manifest:
|
amend-manifest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ FROM alpine:latest
|
|||||||
|
|
||||||
RUN apk add --no-cache privoxy
|
RUN apk add --no-cache privoxy
|
||||||
|
|
||||||
|
COPY config /etc/privoxy/
|
||||||
|
|
||||||
|
RUN chown -R 1000:1000 /etc/privoxy /var/log/privoxy
|
||||||
|
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|
||||||
CMD ["privoxy", "--no-daemon", "/etc/privoxy/config"]
|
CMD ["privoxy", "--no-daemon", "/etc/privoxy/config"]
|
||||||
@@ -31,11 +31,23 @@ services:
|
|||||||
|
|
||||||
2. **Chỉnh sửa cấu hình Privoxy:**
|
2. **Chỉnh sửa cấu hình Privoxy:**
|
||||||
|
|
||||||
- Copy file cấu hình mẫu từ container (nếu cần):
|
- Tạo file `privoxy/config` với cấu hình mặc định
|
||||||
|
```
|
||||||
|
listen-address 0.0.0.0:8118
|
||||||
|
|
||||||
|
toggle 1
|
||||||
|
enable-remote-toggle 0
|
||||||
|
enable-edit-actions 0
|
||||||
|
enforce-blocks 1
|
||||||
|
buffer-limit 4096
|
||||||
|
|
||||||
|
logfile /dev/stdout
|
||||||
|
```
|
||||||
|
|
||||||
|
- Hoặc copy file cấu hình mẫu từ container (nếu chưa mount config folder):
|
||||||
```sh
|
```sh
|
||||||
docker cp privoxy:/etc/privoxy/config ./privoxy/config
|
docker cp privoxy:/etc/privoxy/config ./privoxy/config
|
||||||
```
|
```
|
||||||
- Hoặc tự tạo file `config` trong thư mục `privoxy`.
|
|
||||||
|
|
||||||
3. **Chạy dịch vụ:**
|
3. **Chạy dịch vụ:**
|
||||||
|
|
||||||
@@ -50,4 +62,4 @@ services:
|
|||||||
|
|
||||||
## Thông tin thêm
|
## Thông tin thêm
|
||||||
- Image được build định kỳ hàng tuần và hỗ trợ đa kiến trúc (amd64, arm64).
|
- Image được build định kỳ hàng tuần và hỗ trợ đa kiến trúc (amd64, arm64).
|
||||||
- Để build hoặc push image, xem file `.gitea/workflows/build-docker.yml`.
|
- Để build hoặc push image, xem file [build-docker.yml](.gitea/workflows/build-docker.yml).
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
listen-address 0.0.0.0:8118
|
||||||
|
|
||||||
|
toggle 1
|
||||||
|
enable-remote-toggle 0
|
||||||
|
enable-edit-actions 0
|
||||||
|
enforce-blocks 1
|
||||||
|
buffer-limit 4096
|
||||||
|
|
||||||
|
logfile /dev/stdout
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user