1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

add sniproxy

This commit is contained in:
kev 2023-06-12 14:55:56 +08:00
parent ef673cc3ca
commit 3c342098bd
5 changed files with 56 additions and 0 deletions

View File

@ -267,6 +267,7 @@ A collection of delicious docker recipes.
- [x] shadowsocks-libev :+1:
- [x] shadowsocks-arm
- [x] shadowsocks-libev-arm :+1:
- [x] sniproxy
- [x] spiped
- [x] squid
- [x] stunnel

13
sniproxy/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
#
# Dockerfile for sniproxy
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache sniproxy
EXPOSE 80 443
ENTRYPOINT ["/usr/sbin/sniproxy"]
CMD ["-f", "-n", "65536", "-c", "/etc/sniproxy/sniproxy.conf"]

7
sniproxy/README.md Normal file
View File

@ -0,0 +1,7 @@
sniproxy
========
[sniproxy][1] - Proxies incoming HTTP and TLS connections based on the hostname
contained in the initial request of the TCP session.
[1]: https://github.com/dlundquist/sniproxy

View File

@ -0,0 +1,25 @@
user sniproxy
pidfile /var/run/sniproxy/sniproxy.pid
error_log {
filename /var/log/sniproxy/error.log
priority notice
}
listener 0.0.0.0 80 {
proto http
access_log {
filename /var/log/sniproxy/access.log
}
}
listener 0.0.0.0 443 {
proto tls
access_log {
filename /var/log/sniproxy/access.log
}
}
table {
mydomain\.com *
}

View File

@ -0,0 +1,10 @@
version: "3.8"
services:
sniproxy:
image: vimagick/sniproxy
ports:
- "80:80"
- "443:443"
volumes:
- ./data:/etc/sniproxy
restart: unless-stopped