Compare commits
7
Commits
a0fbd5000e
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d373ec829c | ||
|
|
87880f1f26 | ||
|
|
ca6cc13455 | ||
|
|
c97e3801a8 | ||
|
|
0cdbb2fe7b | ||
|
|
1cdb1ad4bc | ||
|
|
97e97a2403 |
@@ -43,7 +43,7 @@ jobs:
|
||||
docker push ${{ env.IMAGE_PATH }}:${{ matrix.arch }}-latest
|
||||
|
||||
amend-manifest:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux
|
||||
needs: [build]
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
|
||||
+7
-1
@@ -2,4 +2,10 @@ FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache privoxy
|
||||
|
||||
CMD ["privoxy", "--no-daemon"]
|
||||
COPY config /etc/privoxy/
|
||||
|
||||
RUN chown -R 1000:1000 /etc/privoxy /var/log/privoxy
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
CMD ["privoxy", "--no-daemon", "/etc/privoxy/config"]
|
||||
@@ -31,11 +31,23 @@ services:
|
||||
|
||||
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
|
||||
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ụ:**
|
||||
|
||||
@@ -50,4 +62,4 @@ services:
|
||||
|
||||
## Thông tin thêm
|
||||
- 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